]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: ipack/bridges/tpci200: delete ipack_device_unregister calls when exiting
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 11 Sep 2012 11:35:10 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 19:18:11 +0000 (12:18 -0700)
As the ipack_bus_unregister() takes care of unregistering the devices plugged
in the carrier, it is not needed to do it in the carrier driver.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/bridges/tpci200.c

index 77e6392fee082ad523ef186ecd6e40e1eede2551..8de74c97d76bf88cf346533ef0227c43af73fc1b 100644 (file)
@@ -610,11 +610,6 @@ static int tpci200_reset_timeout(struct ipack_device *dev)
 
 static void tpci200_uninstall(struct tpci200_board *tpci200)
 {
-       int i;
-
-       for (i = 0; i < TPCI200_NB_SLOT; i++)
-               ipack_device_unregister(tpci200->slots[i].dev);
-
        tpci200_unregister(tpci200);
        kfree(tpci200->slots);
 }
@@ -751,8 +746,8 @@ out_err_info:
 
 static void __tpci200_pci_remove(struct tpci200_board *tpci200)
 {
-       tpci200_uninstall(tpci200);
        ipack_bus_unregister(tpci200->info->ipack_bus);
+       tpci200_uninstall(tpci200);
 
        kfree(tpci200->info);
        kfree(tpci200);