summaryrefslogtreecommitdiff
path: root/lib/devmem_is_allowed.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/devmem_is_allowed.c')
-rw-r--r--lib/devmem_is_allowed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/devmem_is_allowed.c b/lib/devmem_is_allowed.c
index c0d67c541849..60be9e24bd57 100644
--- a/lib/devmem_is_allowed.c
+++ b/lib/devmem_is_allowed.c
@@ -19,7 +19,7 @@
*/
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;