[U-Boot] [PATCH 8/9] mmc: tegra: port to standard clock/reset APIs

Stephen Warren swarren at wwwdotorg.org
Thu Jul 28 18:03:12 CEST 2016


On 07/27/2016 07:09 PM, Jaehoon Chung wrote:
> Hi Stephen,
>
> On 07/28/2016 06:24 AM, Stephen Warren wrote:
>> From: Stephen Warren <swarren at nvidia.com>
>>
>> Tegra186 supports the new standard clock and reset APIs. Older Tegra SoCs
>> still use custom APIs. Enhance the Tegra MMC driver so that it can operate
>> with either set of APIs.

>> diff --git a/arch/arm/include/asm/arch-tegra/tegra_mmc.h b/arch/arm/include/asm/arch-tegra/tegra_mmc.h

>> +#ifdef CONFIG_TEGRA186
>> +	{
>> +		ulong rate = clk_set_rate(&host->clk, clock);
>> +		div = (rate + clock - 1) / clock;
>> +	}
>
> It seems that doesn't need to add the bracket.

There's a variable declaration at the start of the block. Without the 
brackets, the compiler can/will complain about variable declarations 
being in the middle of a block.


More information about the U-Boot mailing list