diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-04-12 03:41:07 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-07 01:24:42 -0400 |
commit | b6825a02fd3c43f2bd2e126fdbe9d83d6ca44f4e (patch) | |
tree | 6004d7b6d30101cfd5783d91fc5d301927073cf2 /arch/arm/mach-shmobile/include | |
parent | bdd5d28461f8f94b4eb719d229b9ed66ca28636f (diff) |
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 <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/include')
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/clock.h | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
31 | SH_FIXED_RATIO_CLK(name, p, name) | 31 | SH_FIXED_RATIO_CLK(name, p, name) |
32 | 32 | ||
33 | #define SH_CLK_SET_RATIO(p, m, d) \ | 33 | #define SH_CLK_SET_RATIO(p, m, d) \ |
34 | { \ | 34 | do { \ |
35 | (p)->mul = m; \ | 35 | (p)->mul = m; \ |
36 | (p)->div = d; \ | 36 | (p)->div = d; \ |
37 | } | 37 | } while (0) |
38 | 38 | ||
39 | #endif | 39 | #endif |