Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6825a02 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Simon Horman
Browse files

ARM: shmobile: use do{ }while() on SH_CLK_SET_RATIO()



SH_CLK_SET_RATIO() will be trouble without this patch

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent bdd5d284
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -31,9 +31,9 @@ static SH_FIXED_RATIO_CLKg(name, p, r)
	SH_FIXED_RATIO_CLK(name, p, name)
	SH_FIXED_RATIO_CLK(name, p, name)


#define SH_CLK_SET_RATIO(p, m, d)	\
#define SH_CLK_SET_RATIO(p, m, d)	\
{			\
do {			\
	(p)->mul = m;	\
	(p)->mul = m;	\
	(p)->div = d;	\
	(p)->div = d;	\
}
} while (0)


#endif
#endif