]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
if_usb: Kill directly reference of netdev->priv
authorWang Chen <wangchen@cn.fujitsu.com>
Thu, 4 Dec 2008 06:24:05 +0000 (22:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Dec 2008 06:24:05 +0000 (22:24 -0800)
Simply replace netdev->priv with netdev_priv().

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/libertas/if_usb.c

index fcd3fe6abe8cbcae6b15e257b3f2282f756f6039..2fc637ad85c741b84b94ba1a7f230f30077a4b8a 100644 (file)
@@ -59,7 +59,7 @@ static int if_usb_reset_device(struct if_usb_card *cardp);
 static ssize_t if_usb_firmware_set(struct device *dev,
                struct device_attribute *attr, const char *buf, size_t count)
 {
-       struct lbs_private *priv = to_net_dev(dev)->priv;
+       struct lbs_private *priv = netdev_priv(to_net_dev(dev));
        struct if_usb_card *cardp = priv->card;
        char fwname[FIRMWARE_NAME_MAX];
        int ret;
@@ -86,7 +86,7 @@ static DEVICE_ATTR(lbs_flash_fw, 0200, NULL, if_usb_firmware_set);
 static ssize_t if_usb_boot2_set(struct device *dev,
                struct device_attribute *attr, const char *buf, size_t count)
 {
-       struct lbs_private *priv = to_net_dev(dev)->priv;
+       struct lbs_private *priv = netdev_priv(to_net_dev(dev));
        struct if_usb_card *cardp = priv->card;
        char fwname[FIRMWARE_NAME_MAX];
        int ret;