projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c3b16
)
powerpc/mm: Use PFN_PHYS() in devmem_is_allowed()
author
Scott Wood
<scottwood@freescale.com>
Fri, 17 Apr 2015 21:17:14 +0000
(16:17 -0500)
committer
Scott Wood
<scottwood@freescale.com>
Wed, 3 Jun 2015 02:37:23 +0000
(21:37 -0500)
This function can run on systems where physical addresses don't
fit in unsigned long, so make sure to use the macro that contains the
proper cast.
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/mm/mem.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/mm/mem.c
b/arch/powerpc/mm/mem.c
index 45fda71feb27465fcd4079744d0a19cd9f168ea9..0f11819d8f1dc07441f6e13362a4dca53f55fb87 100644
(file)
--- a/
arch/powerpc/mm/mem.c
+++ b/
arch/powerpc/mm/mem.c
@@
-560,7
+560,7
@@
subsys_initcall(add_system_ram_resources);
*/
int devmem_is_allowed(unsigned long pfn)
{
- if (iomem_is_exclusive(
pfn << PAGE_SHIFT
))
+ if (iomem_is_exclusive(
PFN_PHYS(pfn)
))
return 0;
if (!page_is_ram(pfn))
return 1;