File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2546,13 +2546,6 @@ static struct hso_device *hso_create_net_device(struct usb_interface *interface,
2546
2546
SET_NETDEV_DEV (net , & interface -> dev );
2547
2547
SET_NETDEV_DEVTYPE (net , & hso_type );
2548
2548
2549
- /* registering our net device */
2550
- result = register_netdev (net );
2551
- if (result ) {
2552
- dev_err (& interface -> dev , "Failed to register device\n" );
2553
- goto exit ;
2554
- }
2555
-
2556
2549
/* start allocating */
2557
2550
for (i = 0 ; i < MUX_BULK_RX_BUF_COUNT ; i ++ ) {
2558
2551
hso_net -> mux_bulk_rx_urb_pool [i ] = usb_alloc_urb (0 , GFP_KERNEL );
@@ -2576,6 +2569,13 @@ static struct hso_device *hso_create_net_device(struct usb_interface *interface,
2576
2569
2577
2570
add_net_device (hso_dev );
2578
2571
2572
+ /* registering our net device */
2573
+ result = register_netdev (net );
2574
+ if (result ) {
2575
+ dev_err (& interface -> dev , "Failed to register device\n" );
2576
+ goto exit ;
2577
+ }
2578
+
2579
2579
hso_log_port (hso_dev );
2580
2580
2581
2581
hso_create_rfkill (hso_dev , interface );
You can’t perform that action at this time.
0 commit comments