lkml.org 
[lkml]   [2008]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -mm] define empty unxlate_dev_mem_ptr on AVR32

Defined as a NOP on AVR32 as per the asm-generic implementation.
This keeps /dev/mem happy.

Signed-Off-By: Ben Nizette <bn@niasdigital.com>

---
Index: linux-2.6.24-rc8-mm1/include/asm-avr32/io.h
===================================================================
--- linux-2.6.24-rc8-mm1.orig/include/asm-avr32/io.h
+++ linux-2.6.24-rc8-mm1/include/asm-avr32/io.h
@@ -305,6 +305,12 @@ extern void __iounmap(void __iomem *addr
#define xlate_dev_mem_ptr(p) __va(p)

/*
+ * We just keep an empty definition of this around (a-la the asm-generic
+ * implementation) to keep /dev/mem happy
+ */
+#define unxlate_dev_mem_ptr(p, a) {}
+
+/*
* Convert a virtual cached pointer to an uncached pointer
*/
#define xlate_dev_kmem_ptr(p) p

\
 
 \ /
  Last update: 2008-01-23 13:01    [W:0.071 / U:1.208 seconds]
©2003-2014 Jasper Spaans. Advertise on this site