From: Uwe Kleine-König Date: Tue, 13 Dec 2022 15:35:53 +0000 (+0100) Subject: media: chips-media/imx-vdoa: Drop empty platform remove function X-Git-Tag: v6.6.7~3400^2~2^2~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c58bddb1d743e8b25aedd5f67d0bf391ecf79ca8;p=platform%2Fkernel%2Flinux-starfive.git media: chips-media/imx-vdoa: Drop empty platform remove function 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/chips-media/imx-vdoa.c b/drivers/media/platform/chips-media/imx-vdoa.c index c70871b..c3561fc 100644 --- a/drivers/media/platform/chips-media/imx-vdoa.c +++ b/drivers/media/platform/chips-media/imx-vdoa.c @@ -324,11 +324,6 @@ static int vdoa_probe(struct platform_device *pdev) return 0; } -static int vdoa_remove(struct platform_device *pdev) -{ - return 0; -} - static const struct of_device_id vdoa_dt_ids[] = { { .compatible = "fsl,imx6q-vdoa" }, {} @@ -337,7 +332,6 @@ MODULE_DEVICE_TABLE(of, vdoa_dt_ids); static struct platform_driver vdoa_driver = { .probe = vdoa_probe, - .remove = vdoa_remove, .driver = { .name = VDOA_NAME, .of_match_table = vdoa_dt_ids,