Commit df66f858 authored by Wang Chen's avatar Wang Chen Committed by David S. Miller

if_usb: Kill directly reference of netdev->priv

Simply replace netdev->priv with netdev_priv().
Signed-off-by: default avatarWang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 48502180
...@@ -59,7 +59,7 @@ static int if_usb_reset_device(struct if_usb_card *cardp); ...@@ -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, static ssize_t if_usb_firmware_set(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count) 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; struct if_usb_card *cardp = priv->card;
char fwname[FIRMWARE_NAME_MAX]; char fwname[FIRMWARE_NAME_MAX];
int ret; int ret;
...@@ -86,7 +86,7 @@ static DEVICE_ATTR(lbs_flash_fw, 0200, NULL, if_usb_firmware_set); ...@@ -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, static ssize_t if_usb_boot2_set(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count) 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; struct if_usb_card *cardp = priv->card;
char fwname[FIRMWARE_NAME_MAX]; char fwname[FIRMWARE_NAME_MAX];
int ret; int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment