From: Kuninori Morimoto Date: Fri, 12 Apr 2013 07:41:07 +0000 (-0700) Subject: ARM: shmobile: use do{ }while() on SH_CLK_SET_RATIO() X-Git-Tag: next-20130527~8^2^13~120^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=af07908911fac1c2549f16ddc6d7b1f450d0c4a7;p=karo-tx-linux.git ARM: shmobile: use do{ }while() on SH_CLK_SET_RATIO() SH_CLK_SET_RATIO() will be trouble without this patch Signed-off-by: Kuninori Morimoto Signed-off-by: Simon Horman --- diff --git a/arch/arm/mach-shmobile/include/mach/clock.h b/arch/arm/mach-shmobile/include/mach/clock.h index 89020443e0ca..03e56074928c 100644 --- a/arch/arm/mach-shmobile/include/mach/clock.h +++ b/arch/arm/mach-shmobile/include/mach/clock.h @@ -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