From: Uwe Kleine-König Date: Thu, 21 Oct 2021 06:25:47 +0000 (+0200) Subject: media: s5c73m3: Drop empty spi_driver remove callback X-Git-Tag: v6.6.17~8435^2~126 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fadecf79cf8ef9bd3b8dcd0a82455b2c94c4d5c7;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Kieran Bingham Reviewed-by: Andrzej Hajda Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/s5c73m3/s5c73m3-spi.c b/drivers/media/i2c/s5c73m3/s5c73m3-spi.c index c102c6b..7fe6118 100644 --- a/drivers/media/i2c/s5c73m3/s5c73m3-spi.c +++ b/drivers/media/i2c/s5c73m3/s5c73m3-spi.c @@ -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;