static int st_nci_spi_remove(struct spi_device *dev) { struct st_nci_spi_phy *phy = spi_get_drvdata(dev); dev_dbg(&dev->dev, "%s\n", __func__); ndlc_remove(phy->ndlc); return 0; }
static int st_nci_i2c_remove(struct i2c_client *client) { struct st_nci_i2c_phy *phy = i2c_get_clientdata(client); dev_dbg(&client->dev, "%s\n", __func__); ndlc_remove(phy->ndlc); return 0; }
static int st21nfcb_nci_i2c_remove(struct i2c_client *client) { struct st21nfcb_i2c_phy *phy = i2c_get_clientdata(client); dev_dbg(&client->dev, "%s\n", __func__); ndlc_remove(phy->ndlc); if (phy->powered) st21nfcb_nci_i2c_disable(phy); return 0; }