Commit eb09882d authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Wolfram Sang

drm/i2c/sil164: 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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 568035b0
...@@ -370,12 +370,6 @@ sil164_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -370,12 +370,6 @@ sil164_probe(struct i2c_client *client, const struct i2c_device_id *id)
return 0; return 0;
} }
static int
sil164_remove(struct i2c_client *client)
{
return 0;
}
static struct i2c_client * static struct i2c_client *
sil164_detect_slave(struct i2c_client *client) sil164_detect_slave(struct i2c_client *client)
{ {
...@@ -427,7 +421,6 @@ MODULE_DEVICE_TABLE(i2c, sil164_ids); ...@@ -427,7 +421,6 @@ MODULE_DEVICE_TABLE(i2c, sil164_ids);
static struct drm_i2c_encoder_driver sil164_driver = { static struct drm_i2c_encoder_driver sil164_driver = {
.i2c_driver = { .i2c_driver = {
.probe = sil164_probe, .probe = sil164_probe,
.remove = sil164_remove,
.driver = { .driver = {
.name = "sil164", .name = "sil164",
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment