| From 968deade76d07ef32c7d961a1d2784c8576a6a50 Mon Sep 17 00:00:00 2001 |
| From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Date: Fri, 12 Apr 2013 00:41:07 -0700 |
| Subject: 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> |
| (cherry picked from commit b6825a02fd3c43f2bd2e126fdbe9d83d6ca44f4e) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| arch/arm/mach-shmobile/include/mach/clock.h | 4 ++-- |
| 1 file 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 89020443..03e56074 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 |
| -- |
| 1.8.4.3.gca3854a |
| |