Commit 8a291eeb authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

ASoC: da7219: 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>
Link: https://lore.kernel.org/r/20220603140513.131142-3-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 60391d78
...@@ -2693,11 +2693,6 @@ static int da7219_i2c_probe(struct i2c_client *i2c) ...@@ -2693,11 +2693,6 @@ static int da7219_i2c_probe(struct i2c_client *i2c)
return ret; return ret;
} }
static int da7219_i2c_remove(struct i2c_client *client)
{
return 0;
}
static const struct i2c_device_id da7219_i2c_id[] = { static const struct i2c_device_id da7219_i2c_id[] = {
{ "da7219", }, { "da7219", },
{ } { }
...@@ -2711,7 +2706,6 @@ static struct i2c_driver da7219_i2c_driver = { ...@@ -2711,7 +2706,6 @@ static struct i2c_driver da7219_i2c_driver = {
.acpi_match_table = ACPI_PTR(da7219_acpi_match), .acpi_match_table = ACPI_PTR(da7219_acpi_match),
}, },
.probe_new = da7219_i2c_probe, .probe_new = da7219_i2c_probe,
.remove = da7219_i2c_remove,
.id_table = da7219_i2c_id, .id_table = da7219_i2c_id,
}; };
......
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