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>
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);
}
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);