]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: vme_user: remove __iomem marking from kern_buf and derivates
authorEmilio G. Cota <cota@braap.org>
Fri, 12 Nov 2010 11:15:27 +0000 (11:15 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 19:40:16 +0000 (11:40 -0800)
kern_buf is not iomem; it comes from kmalloc and is directly
dereferenced.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Acked-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vme/devices/vme_user.c

index 7c61adc8eb79e5e9c05a3d42a4f0d9dbc164a2d2..5d3a39bcd2a8f4b93b721c51f384d87864f1cea5 100644 (file)
@@ -92,7 +92,7 @@ static unsigned int bus_num;
  * Structure to handle image related parameters.
  */
 typedef struct {
-       void __iomem *kern_buf; /* Buffer address in kernel space */
+       void *kern_buf; /* Buffer address in kernel space */
        dma_addr_t pci_buf;     /* Buffer address in PCI address space */
        unsigned long long size_buf;    /* Buffer size */
        struct semaphore sem;   /* Semaphore for locking image */
@@ -277,7 +277,7 @@ static ssize_t resource_from_user(unsigned int minor, const char *buf,
 static ssize_t buffer_to_user(unsigned int minor, char __user *buf,
        size_t count, loff_t *ppos)
 {
-       void __iomem *image_ptr;
+       void *image_ptr;
        ssize_t retval;
 
        image_ptr = image[minor].kern_buf + *ppos;
@@ -296,7 +296,7 @@ static ssize_t buffer_to_user(unsigned int minor, char __user *buf,
 static ssize_t buffer_from_user(unsigned int minor, const char *buf,
        size_t count, loff_t *ppos)
 {
-       void __iomem *image_ptr;
+       void *image_ptr;
        size_t retval;
 
        image_ptr = image[minor].kern_buf + *ppos;