OSDN Git Service

media: chips-media/imx-vdoa: Drop empty platform remove function
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 13 Dec 2022 15:35:53 +0000 (16:35 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 6 Feb 2023 08:02:33 +0000 (09:02 +0100)
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>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/chips-media/imx-vdoa.c

index c70871b..c3561fc 100644 (file)
@@ -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,