static int microread_i2c_remove(struct i2c_client *client) { struct microread_i2c_phy *phy = i2c_get_clientdata(client); microread_remove(phy->hdev); free_irq(client->irq, phy); return 0; }
static int microread_mei_remove(struct mei_cl_device *device) { struct microread_mei_phy *phy = mei_cl_get_drvdata(device); pr_info("Removing microread\n"); microread_remove(phy->hdev); if (phy->powered) microread_mei_disable(phy); kfree(phy); return 0; }