* [PATCH] mfd: tps65010: add missed gpiochip_remove
@ 2019-11-18 11:40 Chuhong Yuan
0 siblings, 0 replies; only message in thread
From: Chuhong Yuan @ 2019-11-18 11:40 UTC (permalink / raw)
Cc: Lee Jones, linux-kernel, Chuhong Yuan
The driver forgets to call gpiochip_remove to match gpiochip_add_data
in probe.
Add the missed call to fix it.
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
---
drivers/mfd/tps65010.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mfd/tps65010.c b/drivers/mfd/tps65010.c
index 65fcc58c02da..f73abba7be51 100644
--- a/drivers/mfd/tps65010.c
+++ b/drivers/mfd/tps65010.c
@@ -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);
--
2.24.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-18 11:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-18 11:40 [PATCH] mfd: tps65010: add missed gpiochip_remove Chuhong Yuan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).