beceem: fold unregister_netdevice into AdapterFree
[linux-2.6-microblaze.git] / drivers / staging / bcm / Misc.c
index ae9e88c..b982c7a 100644 (file)
@@ -125,7 +125,7 @@ VOID AdapterFree(PMINI_ADAPTER Adapter)
        if(Adapter->LEDInfo.led_thread_running & (BCM_LED_THREAD_RUNNING_ACTIVELY | BCM_LED_THREAD_RUNNING_INACTIVELY))
                kthread_stop (Adapter->LEDInfo.led_cntrl_threadid);
 
-       bcm_unregister_networkdev(Adapter);
+       unregister_netdev(Adapter->dev);
 
        /* FIXME: use proper wait_event and refcounting */
        while(atomic_read(&Adapter->ApplicationRunning))