mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
[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>
This commit is contained in:
parent
bf58fbd5e8
commit
09abfa8048
@ -880,7 +880,6 @@ static int rtl8150_probe(struct usb_interface *intf,
|
|||||||
}
|
}
|
||||||
fill_skb_pool(dev);
|
fill_skb_pool(dev);
|
||||||
set_ethernet_addr(dev);
|
set_ethernet_addr(dev);
|
||||||
info("%s: rtl8150 is detected", netdev->name);
|
|
||||||
|
|
||||||
usb_set_intfdata(intf, dev);
|
usb_set_intfdata(intf, dev);
|
||||||
SET_NETDEV_DEV(netdev, &intf->dev);
|
SET_NETDEV_DEV(netdev, &intf->dev);
|
||||||
@ -888,6 +887,9 @@ static int rtl8150_probe(struct usb_interface *intf,
|
|||||||
err("couldn't register the device");
|
err("couldn't register the device");
|
||||||
goto out2;
|
goto out2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
info("%s: rtl8150 is detected", netdev->name);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
out2:
|
out2:
|
||||||
|
Loading…
Reference in New Issue
Block a user