aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorWang Chen <wangchen@cn.fujitsu.com>2008-12-07 02:59:10 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-07 02:59:10 -0500
commit4bcd42679643dd3dfd6aaad9fcbcc74ac5c7e2e9 (patch)
tree6a23212145c9bb4e163965119e8854890609d1ee /drivers/staging
parent979123d5343b4fdcd4c682745b8a0be9b8fac248 (diff)
staging-slicoss: Kill directly reference of netdev->priv
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/slicoss/slicoss.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c
index 8fa9490b3e2c..00390362f10f 100644
--- a/drivers/staging/slicoss/slicoss.c
+++ b/drivers/staging/slicoss/slicoss.c
@@ -765,8 +765,7 @@ static int slic_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
765#ifdef SLIC_USER_REQUEST_DUMP_ENABLED 765#ifdef SLIC_USER_REQUEST_DUMP_ENABLED
766 case SIOCSLICDUMPCARD: 766 case SIOCSLICDUMPCARD:
767 { 767 {
768 struct adapter *adapter = (struct adapter *) 768 struct adapter *adapter = netdev_priv(dev);
769 dev->priv;
770 struct sliccard *card; 769 struct sliccard *card;
771 770
772 ASSERT(adapter); 771 ASSERT(adapter);
@@ -1685,7 +1684,7 @@ static void slic_timer_ping(ulong dev)
1685 struct sliccard *card; 1684 struct sliccard *card;
1686 1685
1687 ASSERT(dev); 1686 ASSERT(dev);
1688 adapter = (struct adapter *)((struct net_device *) dev)->priv; 1687 adapter = netdev_priv((struct net_device *)dev);
1689 ASSERT(adapter); 1688 ASSERT(adapter);
1690 card = adapter->card; 1689 card = adapter->card;
1691 ASSERT(card); 1690 ASSERT(card);
@@ -3136,7 +3135,7 @@ static void slic_timer_get_stats(ulong dev)
3136 struct slic_shmem *pshmem; 3135 struct slic_shmem *pshmem;
3137 3136
3138 ASSERT(dev); 3137 ASSERT(dev);
3139 adapter = (struct adapter *)((struct net_device *)dev)->priv; 3138 adapter = netdev_priv((struct net_device *)dev);
3140 ASSERT(adapter); 3139 ASSERT(adapter);
3141 card = adapter->card; 3140 card = adapter->card;
3142 ASSERT(card); 3141 ASSERT(card);