Skip to content

Commit

Permalink
drm/i2c/sil164: Drop no-op remove function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Kleine-König authored and Wolfram Sang committed Aug 16, 2022
1 parent 568035b commit eb09882
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/gpu/drm/i2c/sil164_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,6 @@ sil164_probe(struct i2c_client *client, const struct i2c_device_id *id)
return 0;
}

static int
sil164_remove(struct i2c_client *client)
{
return 0;
}

static struct i2c_client *
sil164_detect_slave(struct i2c_client *client)
{
Expand Down Expand Up @@ -427,7 +421,6 @@ MODULE_DEVICE_TABLE(i2c, sil164_ids);
static struct drm_i2c_encoder_driver sil164_driver = {
.i2c_driver = {
.probe = sil164_probe,
.remove = sil164_remove,
.driver = {
.name = "sil164",
},
Expand Down

0 comments on commit eb09882

Please sign in to comment.