Skip to content

Commit 09abfa8

Browse files
petkomanolovgregkh
authored andcommitted
[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>
1 parent bf58fbd commit 09abfa8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/usb/net/rtl8150.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,14 +880,16 @@ static int rtl8150_probe(struct usb_interface *intf,
880880
}
881881
fill_skb_pool(dev);
882882
set_ethernet_addr(dev);
883-
info("%s: rtl8150 is detected", netdev->name);
884883

885884
usb_set_intfdata(intf, dev);
886885
SET_NETDEV_DEV(netdev, &intf->dev);
887886
if (register_netdev(netdev) != 0) {
888887
err("couldn't register the device");
889888
goto out2;
890889
}
890+
891+
info("%s: rtl8150 is detected", netdev->name);
892+
891893
return 0;
892894

893895
out2:

0 commit comments

Comments
 (0)