Skip to content

Commit 23e95fc

Browse files
geertuhorms
authored andcommitted
ARM: shmobile: R-Mobile: Use BIT() macro instead of open coding
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 parent 2375825 commit 23e95fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/mach-shmobile/pm-rmobile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static int rmobile_pd_power_down(struct generic_pm_domain *genpd)
4848
if (rmobile_pd->bit_shift == ~0)
4949
return -EBUSY;
5050

51-
mask = 1 << rmobile_pd->bit_shift;
51+
mask = BIT(rmobile_pd->bit_shift);
5252
if (rmobile_pd->suspend) {
5353
int ret = rmobile_pd->suspend();
5454

@@ -85,7 +85,7 @@ static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd,
8585
if (rmobile_pd->bit_shift == ~0)
8686
return 0;
8787

88-
mask = 1 << rmobile_pd->bit_shift;
88+
mask = BIT(rmobile_pd->bit_shift);
8989
if (__raw_readl(rmobile_pd->base + PSTR) & mask)
9090
goto out;
9191

0 commit comments

Comments
 (0)