From: Uwe Kleine-König Date: Thu, 26 May 2022 13:12:13 +0000 (+0200) Subject: i2c: dummy: Drop no-op remove function X-Git-Tag: timers-urgent-2022-08-13~45^2~26 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=99ad11e06be8ad29abee1ec3b8b22dfe77bbabec;p=users%2Fdwmw2%2Flinux.git i2c: dummy: 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 Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index d43db2c3876e7..8ae47e0bbd67f 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -1023,15 +1023,9 @@ static int dummy_probe(struct i2c_client *client, return 0; } -static int dummy_remove(struct i2c_client *client) -{ - return 0; -} - static struct i2c_driver dummy_driver = { .driver.name = "dummy", .probe = dummy_probe, - .remove = dummy_remove, .id_table = dummy_id, };