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: block-6.0-2022-08-12~30^2~26 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=99ad11e06be8ad29abee1ec3b8b22dfe77bbabec;p=linux-block.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 d43db2c3876e..8ae47e0bbd67 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, };