]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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>
Wed, 22 May 2013 12:41:47 +0000 (21:41 +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