[PATCH 09/12] powerpc: remove bogus comment about page_is_ram

Johannes Berg
2007-02-07T12:45:45Z

[-- Attachment #1: remove-bogus-page_is_ram-comment.patch --]
[-- Type: text/plain, Size: 808 bytes --]

arch/powerpc/mm/mem.c states that page_is_ram is called by the code that
implements /dev/mem which isn't true. Remove the comment.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Paul Mackerras <paulus@samba.org>

---
Please apply to the powerpc tree.

--- linux-2.6-git.orig/arch/powerpc/mm/mem.c 2007-02-07 02:55:30.496884289 +0100
+++ linux-2.6-git/arch/powerpc/mm/mem.c 2007-02-07 02:55:34.636884289 +0100
@@ -61,10 +61,6 @@ unsigned long memory_limit;
extern void hash_preload(struct mm_struct *mm, unsigned long ea,
unsigned long access, unsigned long trap);

-/*
- * This is called by /dev/mem to know if a given address has to
- * be mapped non-cacheable or not
- */
int page_is_ram(unsigned long pfn)
{
unsigned long paddr = (pfn << PAGE_SHIFT);

--