int dw_mci_pltfm_remove(struct platform_device *pdev) { struct dw_mci *host = platform_get_drvdata(pdev); dw_mci_remove(host); return 0; }
static int __devexit dw_mci_pltfm_remove(struct platform_device *pdev) { struct dw_mci *host = platform_get_drvdata(pdev); platform_set_drvdata(pdev, NULL); dw_mci_remove(host); return 0; }
static void __devexit dw_mci_pci_remove(struct pci_dev *pdev) { struct dw_mci *host = pci_get_drvdata(pdev); dw_mci_remove(host); pci_set_drvdata(pdev, NULL); pci_release_regions(pdev); pci_iounmap(pdev, host->regs); kfree(host); pci_disable_device(pdev); }
static void dw_mci_pci_remove(struct pci_dev *pdev) { struct dw_mci *host = pci_get_drvdata(pdev); dw_mci_remove(host); }