static void __tpci200_pci_remove(struct tpci200_board *tpci200)
{
    ipack_bus_unregister(tpci200->info->ipack_bus);
    tpci200_uninstall(tpci200);

    kfree(tpci200->info);
    kfree(tpci200);
}
Example #2
0
static int tvme200_remove (struct device *dev, unsigned int ndev)
{

	struct tvme200_board *tvme200 = &carrier_boards[ndev];

	if (tvme200) {
		tvme200_uninstall(tvme200);	
		ipack_bus_unregister(tvme200->info->ipack_bus);
	} else {
		dev_err(dev, "Error in %s\n", __func__);
		return -EINVAL;
	}

	kfree(tvme200->info);
	kfree(tvme200);

	return 0;
}