void st21nfcb_nci_remove(struct nci_dev *ndev) { struct st21nfcb_nci_info *info = nci_get_drvdata(ndev); nci_unregister_device(ndev); nci_free_device(ndev); kfree(info); }
void nfcmrvl_nci_unregister_dev(struct nfcmrvl_private *priv) { struct nci_dev *ndev = priv->ndev; nci_unregister_device(ndev); nci_free_device(ndev); kfree(priv); }
void st_nci_remove(struct nci_dev *ndev) { struct st_nci_info *info = nci_get_drvdata(ndev); ndlc_close(info->ndlc); nci_unregister_device(ndev); nci_free_device(ndev); }
static int nfcwilink_remove(struct platform_device *pdev) { struct nfcwilink *drv = dev_get_drvdata(&pdev->dev); struct nci_dev *ndev; if (!drv) return -EFAULT; ndev = drv->ndev; nci_unregister_device(ndev); nci_free_device(ndev); return 0; }
static int nfcwilink_remove(struct platform_device *pdev) { struct nfcwilink *drv = dev_get_drvdata(&pdev->dev); struct nci_dev *ndev; nfc_dev_dbg(&pdev->dev, "remove entry"); if (!drv) return -EFAULT; ndev = drv->ndev; nci_unregister_device(ndev); nci_free_device(ndev); kfree(drv); dev_set_drvdata(&pdev->dev, NULL); return 0; }
void st21nfcb_nci_remove(struct nci_dev *ndev) { nci_unregister_device(ndev); nci_free_device(ndev); }