Skip to content

Commit

Permalink
Staging: ipack/bridges/tpci200: delete ipack_device_unregister calls …
Browse files Browse the repository at this point in the history
…when exiting

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>
  • Loading branch information
Samuel Iglesias Gonsálvez authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent bffe0fd commit 9c0d169
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/staging/ipack/bridges/tpci200.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -751,8 +746,8 @@ static int tpci200_pci_probe(struct pci_dev *pdev,

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);
Expand Down

0 comments on commit 9c0d169

Please sign in to comment.