Skip to content

Commit

Permalink
[PATCH] USB: rtl8150 small fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Petko Manolov authored and Greg Kroah-Hartman committed Mar 20, 2006
1 parent bf58fbd commit 09abfa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/usb/net/rtl8150.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,14 +880,16 @@ static int rtl8150_probe(struct usb_interface *intf,
}
fill_skb_pool(dev);
set_ethernet_addr(dev);
info("%s: rtl8150 is detected", netdev->name);

usb_set_intfdata(intf, dev);
SET_NETDEV_DEV(netdev, &intf->dev);
if (register_netdev(netdev) != 0) {
err("couldn't register the device");
goto out2;
}

info("%s: rtl8150 is detected", netdev->name);

return 0;

out2:
Expand Down

0 comments on commit 09abfa8

Please sign in to comment.