mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
media: s5c73m3: Drop empty spi_driver remove callback
A driver with a remove callback that just returns 0 behaves identically to a driver with no remove callback at all. So simplify accordingly. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
af88c2adbb
commit
fadecf79cf
1 changed files with 0 additions and 6 deletions
|
@ -130,16 +130,10 @@ static int s5c73m3_spi_probe(struct spi_device *spi)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int s5c73m3_spi_remove(struct spi_device *spi)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int s5c73m3_register_spi_driver(struct s5c73m3 *state)
|
||||
{
|
||||
struct spi_driver *spidrv = &state->spidrv;
|
||||
|
||||
spidrv->remove = s5c73m3_spi_remove;
|
||||
spidrv->probe = s5c73m3_spi_probe;
|
||||
spidrv->driver.name = S5C73M3_SPI_DRV_NAME;
|
||||
spidrv->driver.of_match_table = s5c73m3_spi_ids;
|
||||
|
|
Loading…
Reference in a new issue