summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-05-26 16:12:13 +0300
committerWolfram Sang <wsa@kernel.org>2022-06-08 23:39:33 +0300
commit99ad11e06be8ad29abee1ec3b8b22dfe77bbabec (patch)
tree7bf975d668175dff8c4c72838c7554d6c8a05f16
parent3d43273d7d1e1a5374d531e901d3c537b4c97bbf (diff)
downloadlinux-99ad11e06be8ad29abee1ec3b8b22dfe77bbabec.tar.xz
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 <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
-rw-r--r--drivers/i2c/i2c-core-base.c6
1 files changed, 0 insertions, 6 deletions
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,
};