linux/drivers/hid/intel-ish-hid/ipc/pci-ish.c
/**
 * ish_remove() - PCI driver remove callback
 * @pdev:	pci device
 *
 * This function does cleanup of ISH on pci remove callback
 */
PCI driver remove callback
@pdev:       pci device

This function does cleanup of ISH on pci remove callback
PCI driver remove callback @pdev : pci device This function does cleanup of ISH on pci remove callback
static void ish_remove(struct pci_dev *pdev)
{
	struct ishtp_device *ishtp_dev = pci_get_drvdata(pdev);
	struct ish_hw *hw = to_ish_hw(ishtp_dev);
	ishtp_bus_remove_all_clients(ishtp_dev, false);
	ish_device_disable(ishtp_dev);
	free_irq(pdev->irq, ishtp_dev);
	pci_iounmap(pdev, hw->mem_addr);
	pci_release_regions(pdev);
	pci_clear_master(pdev);
	pci_disable_device(pdev);
}
static void ish_remove ( struct pci_dev * pdev ) { struct ishtp_device * ishtp_dev = pci_get_drvdata ( pdev ) ; struct ish_hw * hw = to_ish_hw ( ishtp_dev ) ; ishtp_bus_remove_all_clients ( ishtp_dev , false ) ; ish_device_disable ( ishtp_dev ) ; free_irq ( pdev -> irq , ishtp_dev ) ; pci_iounmap ( pdev , hw -> mem_addr ) ; pci_release_regions ( pdev ) ; pci_clear_master ( pdev ) ; pci_disable_device ( pdev ) ; }
ish_remove() - PCI driver remove callback
 @pdev:       pci device
ish_remove () - PCI driver remove callback @pdev : pci device