aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax/i2400m/sdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wimax/i2400m/sdio.c')
-rw-r--r--drivers/net/wimax/i2400m/sdio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wimax/i2400m/sdio.c b/drivers/net/wimax/i2400m/sdio.c
index ea7b29034aab..2981e211e04f 100644
--- a/drivers/net/wimax/i2400m/sdio.c
+++ b/drivers/net/wimax/i2400m/sdio.c
@@ -371,6 +371,10 @@ error:
371} 371}
372 372
373 373
374static struct device_type i2400ms_type = {
375 .name = "wimax",
376};
377
374/* 378/*
375 * Probe a i2400m interface and register it 379 * Probe a i2400m interface and register it
376 * 380 *
@@ -412,6 +416,7 @@ int i2400ms_probe(struct sdio_func *func,
412 goto error_alloc_netdev; 416 goto error_alloc_netdev;
413 } 417 }
414 SET_NETDEV_DEV(net_dev, dev); 418 SET_NETDEV_DEV(net_dev, dev);
419 SET_NETDEV_DEVTYPE(net_dev, &i2400ms_type);
415 i2400m = net_dev_to_i2400m(net_dev); 420 i2400m = net_dev_to_i2400m(net_dev);
416 i2400ms = container_of(i2400m, struct i2400ms, i2400m); 421 i2400ms = container_of(i2400m, struct i2400ms, i2400m);
417 i2400m->wimax_dev.net_dev = net_dev; 422 i2400m->wimax_dev.net_dev = net_dev;