[PATCH] USB: rtl8150 small fix
authorPetko Manolov <petkan@nucleusys.com>
Wed, 15 Mar 2006 14:29:38 +0000 (16:29 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 22:50:02 +0000 (14:50 -0800)
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>
drivers/usb/net/rtl8150.c

index 8ca52be23976a93406b21ec99e45f4ef7ce0140a..1bbbae283c0b64d7faeec26eb1acb92539ad84cf 100644 (file)
@@ -880,7 +880,6 @@ 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);
@@ -888,6 +887,9 @@ static int rtl8150_probe(struct usb_interface *intf,
                err("couldn't register the device");
                goto out2;
        }
+
+       info("%s: rtl8150 is detected", netdev->name);
+
        return 0;
 
 out2: