net: Add DEVTYPE support for Ethernet based devices
[pandora-kernel.git] / drivers / net / wimax / i2400m / usb.c
index cfdaf69..7eadd11 100644 (file)
@@ -351,6 +351,10 @@ error:
 }
 
 
+static struct device_type i2400mu_type = {
+       .name   = "wimax",
+};
+
 /*
  * Probe a i2400m interface and register it
  *
@@ -388,6 +392,7 @@ int i2400mu_probe(struct usb_interface *iface,
                goto error_alloc_netdev;
        }
        SET_NETDEV_DEV(net_dev, dev);
+       SET_NETDEV_DEVTYPE(net_dev, &i2400mu_type);
        i2400m = net_dev_to_i2400m(net_dev);
        i2400mu = container_of(i2400m, struct i2400mu, i2400m);
        i2400m->wimax_dev.net_dev = net_dev;