Unverified Commit fb68cb96 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown
Browse files

ASoC: da732x: 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-5-u.kleine-koenig@pengutronix.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3cce931a
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -1546,11 +1546,6 @@ static int da732x_i2c_probe(struct i2c_client *i2c)
	return ret;
	return ret;
}
}


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

static const struct i2c_device_id da732x_i2c_id[] = {
static const struct i2c_device_id da732x_i2c_id[] = {
	{ "da7320", 0},
	{ "da7320", 0},
	{ }
	{ }
@@ -1562,7 +1557,6 @@ static struct i2c_driver da732x_i2c_driver = {
		.name	= "da7320",
		.name	= "da7320",
	},
	},
	.probe_new	= da732x_i2c_probe,
	.probe_new	= da732x_i2c_probe,
	.remove		= da732x_i2c_remove,
	.id_table	= da732x_i2c_id,
	.id_table	= da732x_i2c_id,
};
};