]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: seeq: use __iomem pointers for MMIO
authorArnd Bergmann <arnd@arndb.de>
Fri, 14 Sep 2012 20:34:35 +0000 (20:34 +0000)
committerArnd Bergmann <arnd@arndb.de>
Wed, 19 Sep 2012 13:37:15 +0000 (15:37 +0200)
ARM is moving to stricter checks on readl/write functions,
so we need to use the correct types everywhere.

Cc: netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/net/ethernet/seeq/ether3.c

index df808ac8cb6535c88ad0eca0c3aacdd98976e83d..6a40dd03a32f16b2289db8605daf1f77e564a3f8 100644 (file)
@@ -99,13 +99,13 @@ typedef enum {
  * The SEEQ8005 doesn't like us writing to its registers
  * too quickly.
  */
-static inline void ether3_outb(int v, const void __iomem *r)
+static inline void ether3_outb(int v, void __iomem *r)
 {
        writeb(v, r);
        udelay(1);
 }
 
-static inline void ether3_outw(int v, const void __iomem *r)
+static inline void ether3_outw(int v, void __iomem *r)
 {
        writew(v, r);
        udelay(1);