aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-06-13 21:11:47 -0400
committerGuido Guenther <agx@sigxcpu.org>2007-06-14 10:11:10 +0200
commit53d8f9e6d6758003e3a3d64aa07a248f1bf69f9d (patch)
treedb299c375521f825a47b4bc37358707a7dafe49d
parentba70c3d8851f5af2110b1a8b5228c400014f5693 (diff)
[PATCH] Change SET_NET_DEVICE to use interface->dev
This way, /sys/class/net/ethX/device/driver points to at76_usb driver rather than usb driver. This is consistent with other network drivers. Signed-off-by: Pavel Roskin <proski@gnu.org>
-rw-r--r--at76_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/at76_usb.c b/at76_usb.c
index d363ff9..8704872 100644
--- a/at76_usb.c
+++ b/at76_usb.c
@@ -5818,7 +5818,6 @@ static struct at76_priv *at76_alloc_new_device(struct usb_device *udev)
return NULL;
}
- SET_NETDEV_DEV(netdev, &udev->dev);
priv = netdev_priv(netdev);
memset(priv, 0, sizeof(*priv));
@@ -6019,6 +6018,7 @@ static int at76_probe(struct usb_interface *interface,
goto error;
}
+ SET_NETDEV_DEV(priv->netdev, &interface->dev);
usb_set_intfdata(interface, priv);
priv->fwe = fwe;