Commit 7273b88e authored by Samuel Iglesias Gonsálvez's avatar Samuel Iglesias Gonsálvez Committed by Greg Kroah-Hartman

Staging: ipack/bridges/tpci200: fix the uninstall the ipack device

Using the call to the ipack_device_unregister() function to avoid the
strange way it was doing, as the device model will take care of calling
the bus's .remove function when a device is being unregistered.
Signed-off-by: default avatarSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b442bf73
......@@ -385,7 +385,6 @@ static int tpci200_slot_unregister(struct ipack_device *dev)
return -ERESTARTSYS;
tpci200->slots[dev->slot].dev = NULL;
ipack_device_unregister(dev);
mutex_unlock(&tpci200->mutex);
return 0;
......@@ -614,7 +613,7 @@ static void tpci200_uninstall(struct tpci200_board *tpci200)
int i;
for (i = 0; i < TPCI200_NB_SLOT; i++)
tpci200_slot_unregister(tpci200->slots[i].dev);
ipack_device_unregister(tpci200->slots[i].dev);
tpci200_unregister(tpci200);
kfree(tpci200->slots);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment