projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2375825
)
ARM: shmobile: R-Mobile: Use BIT() macro instead of open coding
author
Geert Uytterhoeven
<
[email protected]
>
Thu, 4 Jun 2015 18:22:26 +0000
(20:22 +0200)
committer
Simon Horman
<
[email protected]
>
Mon, 6 Jul 2015 00:23:55 +0000
(09:23 +0900)
Signed-off-by: Geert Uytterhoeven <
[email protected]
>
Signed-off-by: Simon Horman <
[email protected]
>
arch/arm/mach-shmobile/pm-rmobile.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-shmobile/pm-rmobile.c
b/arch/arm/mach-shmobile/pm-rmobile.c
index 94161c9b1878a01590792e159d0ac7fd99bcfe83..b9b494f5ca99fc7c923894e8a5d5f4602c3b070e 100644
(file)
--- 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;