diff options
author | Petko Manolov <petkan@nucleusys.com> | 2006-03-15 09:29:38 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 17:50:02 -0500 |
commit | 09abfa8048de8e68eaa09eb07ac18f2d549dfe58 (patch) | |
tree | e77d50458954873e91c3a4ea1bf2be2a27e36257 /drivers/usb/net/rtl8150.c | |
parent | bf58fbd5e86a43466e638407ff8a4eb7766a3b68 (diff) |
[PATCH] USB: rtl8150 small fix
This one is about announcing the device registration after the last check
has been made.
From: Petko Manolov <petkan@nucleusys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/net/rtl8150.c')
-rw-r--r-- | drivers/usb/net/rtl8150.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/net/rtl8150.c b/drivers/usb/net/rtl8150.c index 8ca52be23976..1bbbae283c0b 100644 --- a/drivers/usb/net/rtl8150.c +++ b/drivers/usb/net/rtl8150.c | |||
@@ -880,7 +880,6 @@ static int rtl8150_probe(struct usb_interface *intf, | |||
880 | } | 880 | } |
881 | fill_skb_pool(dev); | 881 | fill_skb_pool(dev); |
882 | set_ethernet_addr(dev); | 882 | set_ethernet_addr(dev); |
883 | info("%s: rtl8150 is detected", netdev->name); | ||
884 | 883 | ||
885 | usb_set_intfdata(intf, dev); | 884 | usb_set_intfdata(intf, dev); |
886 | SET_NETDEV_DEV(netdev, &intf->dev); | 885 | SET_NETDEV_DEV(netdev, &intf->dev); |
@@ -888,6 +887,9 @@ static int rtl8150_probe(struct usb_interface *intf, | |||
888 | err("couldn't register the device"); | 887 | err("couldn't register the device"); |
889 | goto out2; | 888 | goto out2; |
890 | } | 889 | } |
890 | |||
891 | info("%s: rtl8150 is detected", netdev->name); | ||
892 | |||
891 | return 0; | 893 | return 0; |
892 | 894 | ||
893 | out2: | 895 | out2: |