]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
staging-slicoss: Kill directly reference of netdev->priv
authorWang Chen <wangchen@cn.fujitsu.com>
Sun, 7 Dec 2008 07:59:10 +0000 (23:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Dec 2008 07:59:10 +0000 (23:59 -0800)
Simply replace netdev->priv with netdev_priv().

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/staging/slicoss/slicoss.c

index 8fa9490b3e2ca707320e3ccafc28d21089a07b26..00390362f10ff9c8f71981bc4eb267881f573380 100644 (file)
@@ -765,8 +765,7 @@ static int slic_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
 #ifdef SLIC_USER_REQUEST_DUMP_ENABLED
        case SIOCSLICDUMPCARD:
                {
-                       struct adapter *adapter = (struct adapter *)
-                                                       dev->priv;
+                       struct adapter *adapter = netdev_priv(dev);
                        struct sliccard *card;
 
                        ASSERT(adapter);
@@ -1685,7 +1684,7 @@ static void slic_timer_ping(ulong dev)
        struct sliccard *card;
 
        ASSERT(dev);
-       adapter = (struct adapter *)((struct net_device *) dev)->priv;
+       adapter = netdev_priv((struct net_device *)dev);
        ASSERT(adapter);
        card = adapter->card;
        ASSERT(card);
@@ -3136,7 +3135,7 @@ static void slic_timer_get_stats(ulong dev)
        struct slic_shmem *pshmem;
 
        ASSERT(dev);
-       adapter = (struct adapter *)((struct net_device *)dev)->priv;
+       adapter = netdev_priv((struct net_device *)dev);
        ASSERT(adapter);
        card = adapter->card;
        ASSERT(card);