usb: gadget: u_ether: Re-attach netif device to mirror detachment
[linux-2.6-microblaze.git] / drivers / usb / gadget / function / u_ether.c
index 9d1c40c..3c5a6f6 100644 (file)
@@ -1163,6 +1163,8 @@ struct net_device *gether_connect(struct gether *link)
                if (netif_running(dev->net))
                        eth_start(dev, GFP_ATOMIC);
 
+               netif_device_attach(dev->net);
+
        /* on error, disable any endpoints  */
        } else {
                (void) usb_ep_disable(link->out_ep);