summaryrefslogtreecommitdiff
path: root/drivers/i2c/muxes/i2c-mux-reg.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2024-09-29 09:21:57 +0200
committerAndi Shyti <andi.shyti@kernel.org>2024-11-17 11:58:14 +0100
commit32a0a94aa09e7095fccec1ffc969911f492cc7b9 (patch)
tree0c3b0c8199c04d32a5fdb8afbb489f099f889334 /drivers/i2c/muxes/i2c-mux-reg.c
parent506bb2ab00753a59c8a63b02e898098815dc3141 (diff)
downloadlwn-32a0a94aa09e7095fccec1ffc969911f492cc7b9.tar.gz
lwn-32a0a94aa09e7095fccec1ffc969911f492cc7b9.zip
i2c: Switch back to struct platform_driver::remove()
After commit 0edb555a65d1 ("platform: Make platform_driver::remove() return void") .remove() is (again) the right callback to implement for platform drivers. Convert all platform drivers below drivers/i2c to use .remove(), with the eventual goal to drop struct platform_driver::remove_new(). As .remove() and .remove_new() have the same prototypes, conversion is done by just changing the structure member name in the driver initializer. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'drivers/i2c/muxes/i2c-mux-reg.c')
-rw-r--r--drivers/i2c/muxes/i2c-mux-reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-reg.c b/drivers/i2c/muxes/i2c-mux-reg.c
index ef765fcd33f5..dfa472d514cc 100644
--- a/drivers/i2c/muxes/i2c-mux-reg.c
+++ b/drivers/i2c/muxes/i2c-mux-reg.c
@@ -247,7 +247,7 @@ MODULE_DEVICE_TABLE(of, i2c_mux_reg_of_match);
static struct platform_driver i2c_mux_reg_driver = {
.probe = i2c_mux_reg_probe,
- .remove_new = i2c_mux_reg_remove,
+ .remove = i2c_mux_reg_remove,
.driver = {
.name = "i2c-mux-reg",
.of_match_table = of_match_ptr(i2c_mux_reg_of_match),