diff options
Diffstat (limited to 'drivers/net/wimax/i2400m/usb.c')
-rw-r--r-- | drivers/net/wimax/i2400m/usb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wimax/i2400m/usb.c b/drivers/net/wimax/i2400m/usb.c index cfdaf69da9d..7eadd11c815 100644 --- a/drivers/net/wimax/i2400m/usb.c +++ b/drivers/net/wimax/i2400m/usb.c | |||
@@ -351,6 +351,10 @@ error: | |||
351 | } | 351 | } |
352 | 352 | ||
353 | 353 | ||
354 | static struct device_type i2400mu_type = { | ||
355 | .name = "wimax", | ||
356 | }; | ||
357 | |||
354 | /* | 358 | /* |
355 | * Probe a i2400m interface and register it | 359 | * Probe a i2400m interface and register it |
356 | * | 360 | * |
@@ -388,6 +392,7 @@ int i2400mu_probe(struct usb_interface *iface, | |||
388 | goto error_alloc_netdev; | 392 | goto error_alloc_netdev; |
389 | } | 393 | } |
390 | SET_NETDEV_DEV(net_dev, dev); | 394 | SET_NETDEV_DEV(net_dev, dev); |
395 | SET_NETDEV_DEVTYPE(net_dev, &i2400mu_type); | ||
391 | i2400m = net_dev_to_i2400m(net_dev); | 396 | i2400m = net_dev_to_i2400m(net_dev); |
392 | i2400mu = container_of(i2400m, struct i2400mu, i2400m); | 397 | i2400mu = container_of(i2400m, struct i2400mu, i2400m); |
393 | i2400m->wimax_dev.net_dev = net_dev; | 398 | i2400m->wimax_dev.net_dev = net_dev; |