diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-05-26 15:07:54 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2022-07-15 11:37:40 +0900 |
commit | 387162479d8ba9a11cdb6277cd5df3b3ba6da1f3 (patch) | |
tree | 7bf06f97fe10a3d39f6293865e479e20919486de /drivers/extcon | |
parent | 32346491ddf24599decca06190ebca03ff9de7f8 (diff) | |
download | linux-387162479d8ba9a11cdb6277cd5df3b3ba6da1f3.tar.gz linux-387162479d8ba9a11cdb6277cd5df3b3ba6da1f3.tar.bz2 linux-387162479d8ba9a11cdb6277cd5df3b3ba6da1f3.zip |
extcon: fsa9480: Drop no-op remove function
A remove callback that just returns 0 is equivalent to no callback at all
as can be seen in i2c_device_remove(). So simplify accordingly.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon-fsa9480.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/extcon/extcon-fsa9480.c b/drivers/extcon/extcon-fsa9480.c index 08bdedbcdb0d..7cff66c29907 100644 --- a/drivers/extcon/extcon-fsa9480.c +++ b/drivers/extcon/extcon-fsa9480.c @@ -324,11 +324,6 @@ static int fsa9480_probe(struct i2c_client *client, return 0; } -static int fsa9480_remove(struct i2c_client *client) -{ - return 0; -} - #ifdef CONFIG_PM_SLEEP static int fsa9480_suspend(struct device *dev) { @@ -376,7 +371,6 @@ static struct i2c_driver fsa9480_i2c_driver = { .of_match_table = fsa9480_of_match, }, .probe = fsa9480_probe, - .remove = fsa9480_remove, .id_table = fsa9480_id, }; |