net: Add init_dummy_netdev() and fix EMAC driver using it
[deliverable/linux.git] / drivers / net / ibm_newemac / mal.c
index ecf9798987fade1915904f6cb011b8f61f93346f..2a2fc17b28780678eff7efaf0f6d17586e09e7c2 100644 (file)
@@ -613,7 +613,9 @@ static int __devinit mal_probe(struct of_device *ofdev,
        INIT_LIST_HEAD(&mal->list);
        spin_lock_init(&mal->lock);
 
-       netif_napi_add(NULL, &mal->napi, mal_poll,
+       init_dummy_netdev(&mal->dummy_dev);
+
+       netif_napi_add(&mal->dummy_dev, &mal->napi, mal_poll,
                       CONFIG_IBM_NEW_EMAC_POLL_WEIGHT);
 
        /* Load power-on reset defaults */
This page took 0.023413 seconds and 5 git commands to generate.