aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/hso.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/usb/hso.c')
-rw-r--r--drivers/net/usb/hso.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
index 3f9c92a2afcb..fa4e58196c21 100644
--- a/drivers/net/usb/hso.c
+++ b/drivers/net/usb/hso.c
@@ -2535,6 +2535,10 @@ static void hso_create_rfkill(struct hso_device *hso_dev,
2535 } 2535 }
2536} 2536}
2537 2537
2538static struct device_type hso_type = {
2539 .name = "wwan",
2540};
2541
2538/* Creates our network device */ 2542/* Creates our network device */
2539static struct hso_device *hso_create_net_device(struct usb_interface *interface, 2543static struct hso_device *hso_create_net_device(struct usb_interface *interface,
2540 int port_spec) 2544 int port_spec)
@@ -2575,6 +2579,7 @@ static struct hso_device *hso_create_net_device(struct usb_interface *interface,
2575 goto exit; 2579 goto exit;
2576 } 2580 }
2577 SET_NETDEV_DEV(net, &interface->dev); 2581 SET_NETDEV_DEV(net, &interface->dev);
2582 SET_NETDEV_DEVTYPE(net, &hso_type);
2578 2583
2579 /* registering our net device */ 2584 /* registering our net device */
2580 result = register_netdev(net); 2585 result = register_netdev(net);