]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/netx-eth.c
[ARM] Remove asm/hardware.h, use asm/arch/hardware.h instead
[linux-2.6-omap-h63xx.git] / drivers / net / netx-eth.c
index 5267e031daa0b3ab27d3d1dde092cb2fdc8e6159..f2655ce526b9459fb93ff3480c76f7ccbaf687ac 100644 (file)
@@ -29,7 +29,6 @@
 #include <linux/mii.h>
 
 #include <asm/io.h>
-#include <asm/hardware.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/netx-regs.h>
 #include <asm/arch/pfifo.h>
@@ -169,8 +168,8 @@ static void netx_eth_receive(struct net_device *ndev)
        ndev->last_rx = jiffies;
        skb->protocol = eth_type_trans(skb, ndev);
        netif_rx(skb);
-       dev->stats.rx_packets++;
-       dev->stats.rx_bytes += len;
+       ndev->stats.rx_packets++;
+       ndev->stats.rx_bytes += len;
 }
 
 static irqreturn_t
@@ -502,4 +501,4 @@ module_exit(netx_eth_cleanup);
 
 MODULE_AUTHOR("Sascha Hauer, Pengutronix");
 MODULE_LICENSE("GPL");
-
+MODULE_ALIAS("platform:" CARDNAME);