ARM: shmobile: use do{ }while() on SH_CLK_SET_RATIO()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 12 Apr 2013 07:41:07 +0000 (00:41 -0700)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 7 Jun 2013 05:24:42 +0000 (14:24 +0900)
SH_CLK_SET_RATIO() will be trouble without this patch

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/include/mach/clock.h

index 89020443e0ca87fcebce595589a89f9a0fef1955..03e56074928c23fcb053b22b0ac523240e3976d8 100644 (file)
@@ -31,9 +31,9 @@ static SH_FIXED_RATIO_CLKg(name, p, r)
        SH_FIXED_RATIO_CLK(name, p, name)
 
 #define SH_CLK_SET_RATIO(p, m, d)      \
-{                      \
+do {                   \
        (p)->mul = m;   \
        (p)->div = d;   \
-}
+} while (0)
 
 #endif