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 <swar...@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.
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to