s390/qeth: free netdevice when removing a card
[pandora-kernel.git] / drivers / s390 / net / qeth_l3_main.c
index fa38a36..a557487 100644 (file)
@@ -3395,8 +3395,8 @@ static void qeth_l3_remove_device(struct ccwgroup_device *cgdev)
                qeth_l3_set_offline(cgdev);
 
        if (card->dev) {
-               netif_napi_del(&card->napi);
                unregister_netdev(card->dev);
+               free_netdev(card->dev);
                card->dev = NULL;
        }