Commit 23e95fc2 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Simon Horman

ARM: shmobile: R-Mobile: Use BIT() macro instead of open coding

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 23758258
...@@ -48,7 +48,7 @@ static int rmobile_pd_power_down(struct generic_pm_domain *genpd) ...@@ -48,7 +48,7 @@ static int rmobile_pd_power_down(struct generic_pm_domain *genpd)
if (rmobile_pd->bit_shift == ~0) if (rmobile_pd->bit_shift == ~0)
return -EBUSY; return -EBUSY;
mask = 1 << rmobile_pd->bit_shift; mask = BIT(rmobile_pd->bit_shift);
if (rmobile_pd->suspend) { if (rmobile_pd->suspend) {
int ret = rmobile_pd->suspend(); int ret = rmobile_pd->suspend();
...@@ -85,7 +85,7 @@ static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd, ...@@ -85,7 +85,7 @@ static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd,
if (rmobile_pd->bit_shift == ~0) if (rmobile_pd->bit_shift == ~0)
return 0; return 0;
mask = 1 << rmobile_pd->bit_shift; mask = BIT(rmobile_pd->bit_shift);
if (__raw_readl(rmobile_pd->base + PSTR) & mask) if (__raw_readl(rmobile_pd->base + PSTR) & mask)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment