Skip to contentSkip to conversation

mfd: tps65010: add missed gpiochip_remove

PATCH New Chuhong Yuan 1 participant 1 message Nov 18, 2019 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: tps65010: add missed gpiochip_remove

The driver forgets to call gpiochip_remove to match gpiochip_add_data in probe.
Add the missed call to fix it.

---
 drivers/mfd/tps65010.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mfd/tps65010.c +1 -0
index 65fcc58c02da..f73abba7be51 100644
@@ -513,6 +513,7 @@ static int tps65010_remove(struct i2c_client *client)
 			dev_dbg(&client->dev, "board %s %s err %d\n",
 				"teardown", client->name, status);
 	}
+	gpiochip_remove(&tps->chip);
 	if (client->irq > 0)
 		free_irq(client->irq, tps);
 	cancel_delayed_work_sync(&tps->work);
Signature · 1 line
2.24.0