Message ID | 20221213153553.648871-3-u.kleine-koenig@pengutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | media: Drop empty platform remove functions | expand |
On Tue, Dec 13, 2022 at 3:36 PM Uwe Kleine-König <u.kleine-koenig@pengutronix.de> wrote: > > A remove callback just returning 0 is equivalent to no remove callback > at all. So drop the useless function. > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> > --- > drivers/media/platform/ti/davinci/vpbe_venc.c | 6 ------ > 1 file changed, 6 deletions(-) > Reviewed-by: Lad Prabhakar <prabhakar.csengg@gmail.com> Cheers, Prabhakar > diff --git a/drivers/media/platform/ti/davinci/vpbe_venc.c b/drivers/media/platform/ti/davinci/vpbe_venc.c > index 4c8e31de12b1..6bde6517cba5 100644 > --- a/drivers/media/platform/ti/davinci/vpbe_venc.c > +++ b/drivers/media/platform/ti/davinci/vpbe_venc.c > @@ -655,14 +655,8 @@ static int venc_probe(struct platform_device *pdev) > return 0; > } > > -static int venc_remove(struct platform_device *pdev) > -{ > - return 0; > -} > - > static struct platform_driver venc_driver = { > .probe = venc_probe, > - .remove = venc_remove, > .driver = { > .name = MODULE_NAME, > }, > -- > 2.38.1 >
diff --git a/drivers/media/platform/ti/davinci/vpbe_venc.c b/drivers/media/platform/ti/davinci/vpbe_venc.c index 4c8e31de12b1..6bde6517cba5 100644 --- a/drivers/media/platform/ti/davinci/vpbe_venc.c +++ b/drivers/media/platform/ti/davinci/vpbe_venc.c @@ -655,14 +655,8 @@ static int venc_probe(struct platform_device *pdev) return 0; } -static int venc_remove(struct platform_device *pdev) -{ - return 0; -} - static struct platform_driver venc_driver = { .probe = venc_probe, - .remove = venc_remove, .driver = { .name = MODULE_NAME, },
A remove callback just returning 0 is equivalent to no remove callback at all. So drop the useless function. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> --- drivers/media/platform/ti/davinci/vpbe_venc.c | 6 ------ 1 file changed, 6 deletions(-)