summaryrefslogtreecommitdiff
path: root/drivers/mfd/tps65912-i2c.c
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2024-06-13 20:54:30 +0300
committerLee Jones <lee@kernel.org>2024-07-04 19:38:40 +0300
commit13c151a919a876521c16810756764aa38683eb62 (patch)
tree4cc61daedfae0204688ecb77d3092e0e31de139a /drivers/mfd/tps65912-i2c.c
parent0ddabc8c6e80d06b02794d818a36d7b6c16d4c66 (diff)
downloadlinux-13c151a919a876521c16810756764aa38683eb62.tar.xz
mfd: tps65912: Use devm helper functions to simplify probe
This simplifies probe and also allows us to remove the remove callbacks from the core and interface drivers. Do that here. Signed-off-by: Andrew Davis <afd@ti.com> Link: https://lore.kernel.org/r/20240613175430.57698-1-afd@ti.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd/tps65912-i2c.c')
-rw-r--r--drivers/mfd/tps65912-i2c.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/mfd/tps65912-i2c.c b/drivers/mfd/tps65912-i2c.c
index 3cc1bc68be7c..138e50497b51 100644
--- a/drivers/mfd/tps65912-i2c.c
+++ b/drivers/mfd/tps65912-i2c.c
@@ -42,13 +42,6 @@ static int tps65912_i2c_probe(struct i2c_client *client)
return tps65912_device_init(tps);
}
-static void tps65912_i2c_remove(struct i2c_client *client)
-{
- struct tps65912 *tps = i2c_get_clientdata(client);
-
- tps65912_device_exit(tps);
-}
-
static const struct i2c_device_id tps65912_i2c_id_table[] = {
{ "tps65912" },
{ /* sentinel */ }
@@ -61,7 +54,6 @@ static struct i2c_driver tps65912_i2c_driver = {
.of_match_table = tps65912_i2c_of_match_table,
},
.probe = tps65912_i2c_probe,
- .remove = tps65912_i2c_remove,
.id_table = tps65912_i2c_id_table,
};
module_i2c_driver(tps65912_i2c_driver);