media: rc/ir-rx51: Drop empty platform remove function
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 13 Dec 2022 15:35:52 +0000 (16:35 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 22 Jan 2023 07:36:58 +0000 (08:36 +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: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/rc/ir-rx51.c

index 85080c3..adbbe63 100644 (file)
@@ -261,11 +261,6 @@ static int ir_rx51_probe(struct platform_device *dev)
        return devm_rc_register_device(&dev->dev, ir_rx51.rcdev);
 }
 
-static int ir_rx51_remove(struct platform_device *dev)
-{
-       return 0;
-}
-
 static const struct of_device_id ir_rx51_match[] = {
        {
                .compatible = "nokia,n900-ir",
@@ -276,7 +271,6 @@ MODULE_DEVICE_TABLE(of, ir_rx51_match);
 
 static struct platform_driver ir_rx51_platform_driver = {
        .probe          = ir_rx51_probe,
-       .remove         = ir_rx51_remove,
        .suspend        = ir_rx51_suspend,
        .resume         = ir_rx51_resume,
        .driver         = {