diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-06-04 20:22:26 +0200 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2015-07-06 09:23:55 +0900 |
commit | 23e95fc2964de5a38c1c76109188756420268858 (patch) | |
tree | 6de10388b14d9123b223d0ef06aa22887e7e20d1 /arch/arm/mach-shmobile | |
parent | 23758258220c2fcdabb30a3c6fe0a3ce6c705550 (diff) | |
download | op-kernel-dev-23e95fc2964de5a38c1c76109188756420268858.zip op-kernel-dev-23e95fc2964de5a38c1c76109188756420268858.tar.gz |
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>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/pm-rmobile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index 94161c9..b9b494f 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -48,7 +48,7 @@ static int rmobile_pd_power_down(struct generic_pm_domain *genpd) if (rmobile_pd->bit_shift == ~0) return -EBUSY; - mask = 1 << rmobile_pd->bit_shift; + mask = BIT(rmobile_pd->bit_shift); if (rmobile_pd->suspend) { int ret = rmobile_pd->suspend(); @@ -85,7 +85,7 @@ static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd, if (rmobile_pd->bit_shift == ~0) return 0; - mask = 1 << rmobile_pd->bit_shift; + mask = BIT(rmobile_pd->bit_shift); if (__raw_readl(rmobile_pd->base + PSTR) & mask) goto out; |