]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fbdev: omap/lcd: Remove no-op driver callbacks
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 30 Jan 2017 16:39:49 +0000 (17:39 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 30 Jan 2017 16:39:49 +0000 (17:39 +0100)
Every single one of the OMAP fbdev LCD drivers implements no-op remove,
suspend and resume callbacks for their platform_driver. This is not
necessary as the driver core handles the case where the callbacks are not
set just fine. So they are just unnecessary boilerplate that can be
removed.

Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/omap/lcd_ams_delta.c
drivers/video/fbdev/omap/lcd_h3.c
drivers/video/fbdev/omap/lcd_htcherald.c
drivers/video/fbdev/omap/lcd_inn1510.c
drivers/video/fbdev/omap/lcd_inn1610.c
drivers/video/fbdev/omap/lcd_osk.c
drivers/video/fbdev/omap/lcd_palmte.c
drivers/video/fbdev/omap/lcd_palmtt.c
drivers/video/fbdev/omap/lcd_palmz71.c

index f912a207b3941ef163483311ba777e3fecb3618a..ef0ed748eebc64b467d5a883178c4059970bd40c 100644 (file)
@@ -195,27 +195,8 @@ static int ams_delta_panel_probe(struct platform_device *pdev)
        return 0;
 }
 
-static int ams_delta_panel_remove(struct platform_device *pdev)
-{
-       return 0;
-}
-
-static int ams_delta_panel_suspend(struct platform_device *pdev,
-               pm_message_t mesg)
-{
-       return 0;
-}
-
-static int ams_delta_panel_resume(struct platform_device *pdev)
-{
-       return 0;
-}
-
 static struct platform_driver ams_delta_panel_driver = {
        .probe          = ams_delta_panel_probe,
-       .remove         = ams_delta_panel_remove,
-       .suspend        = ams_delta_panel_suspend,
-       .resume         = ams_delta_panel_resume,
        .driver         = {
                .name   = "lcd_ams_delta",
        },
index 21512b027ff7abeea4847a4e2509776929960f20..a38af2faba37385445352406d7d77a69e3e04488 100644 (file)
@@ -98,26 +98,8 @@ static int h3_panel_probe(struct platform_device *pdev)
        return 0;
 }
 
-static int h3_panel_remove(struct platform_device *pdev)
-{
-       return 0;
-}
-
-static int h3_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
-{
-       return 0;
-}
-
-static int h3_panel_resume(struct platform_device *pdev)
-{
-       return 0;
-}
-
 static struct platform_driver h3_panel_driver = {
        .probe          = h3_panel_probe,
-       .remove         = h3_panel_remove,
-       .suspend        = h3_panel_suspend,
-       .resume         = h3_panel_resume,
        .driver         = {
                .name   = "lcd_h3",
        },
index 8b4dfa0582584aa3f507388ae426eae80d070ae5..a2ca5e92b30dd6bd580515b171c01868f37373c3 100644 (file)
@@ -88,27 +88,8 @@ static int htcherald_panel_probe(struct platform_device *pdev)
        return 0;
 }
 
-static int htcherald_panel_remove(struct platform_device *pdev)
-{
-       return 0;
-}
-
-static int htcherald_panel_suspend(struct platform_device *pdev,
-                                               pm_message_t mesg)
-{
-       return 0;
-}
-
-static int htcherald_panel_resume(struct platform_device *pdev)
-{
-       return 0;
-}
-
 static struct platform_driver htcherald_panel_driver = {
        .probe          = htcherald_panel_probe,
-       .remove         = htcherald_panel_remove,
-       .suspend        = htcherald_panel_suspend,
-       .resume         = htcherald_panel_resume,
        .driver         = {
                .name   = "lcd_htcherald",
        },
index 49907fab36ac4ab017b5934af09037e51e4687b3..a549337b135370209c0154c7f32a9d5629066bbf 100644 (file)
@@ -83,27 +83,8 @@ static int innovator1510_panel_probe(struct platform_device *pdev)
        return 0;
 }
 
-static int innovator1510_panel_remove(struct platform_device *pdev)
-{
-       return 0;
-}
-
-static int innovator1510_panel_suspend(struct platform_device *pdev,
-                                      pm_message_t mesg)
-{
-       return 0;
-}
-
-static int innovator1510_panel_resume(struct platform_device *pdev)
-{
-       return 0;
-}
-
 static struct platform_driver innovator1510_panel_driver = {
        .probe          = innovator1510_panel_probe,
-       .remove         = innovator1510_panel_remove,
-       .suspend        = innovator1510_panel_suspend,
-       .resume         = innovator1510_panel_resume,
        .driver         = {
                .name   = "lcd_inn1510",
        },
index 8b42894eeb7756053b6c3250409c069eac6e2e0f..7319563818fc526a3c25cd5dc86634ce4ca9beb3 100644 (file)
@@ -104,27 +104,8 @@ static int innovator1610_panel_probe(struct platform_device *pdev)
        return 0;
 }
 
-static int innovator1610_panel_remove(struct platform_device *pdev)
-{
-       return 0;
-}
-
-static int innovator1610_panel_suspend(struct platform_device *pdev,
-                                      pm_message_t mesg)
-{
-       return 0;
-}
-
-static int innovator1610_panel_resume(struct platform_device *pdev)
-{
-       return 0;
-}
-
 static struct platform_driver innovator1610_panel_driver = {
        .probe          = innovator1610_panel_probe,
-       .remove         = innovator1610_panel_remove,
-       .suspend        = innovator1610_panel_suspend,
-       .resume         = innovator1610_panel_resume,
        .driver         = {
                .name   = "lcd_inn1610",
        },
index b56886c7055e6d56dde4d14e127ac3d0306f12c8..3f4a18bf2eab451f153ec8d3390d35ea7d15b4df 100644 (file)
@@ -103,26 +103,8 @@ static int osk_panel_probe(struct platform_device *pdev)
        return 0;
 }
 
-static int osk_panel_remove(struct platform_device *pdev)
-{
-       return 0;
-}
-
-static int osk_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
-{
-       return 0;
-}
-
-static int osk_panel_resume(struct platform_device *pdev)
-{
-       return 0;
-}
-
 static struct platform_driver osk_panel_driver = {
        .probe          = osk_panel_probe,
-       .remove         = osk_panel_remove,
-       .suspend        = osk_panel_suspend,
-       .resume         = osk_panel_resume,
        .driver         = {
                .name   = "lcd_osk",
        },
index 2713fed286f75803b5f76582661a115b1c8eab9d..c0cee37118cd712e63fe722add82d0caa12bb4a8 100644 (file)
@@ -81,26 +81,8 @@ static int palmte_panel_probe(struct platform_device *pdev)
        return 0;
 }
 
-static int palmte_panel_remove(struct platform_device *pdev)
-{
-       return 0;
-}
-
-static int palmte_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
-{
-       return 0;
-}
-
-static int palmte_panel_resume(struct platform_device *pdev)
-{
-       return 0;
-}
-
 static struct platform_driver palmte_panel_driver = {
        .probe          = palmte_panel_probe,
-       .remove         = palmte_panel_remove,
-       .suspend        = palmte_panel_suspend,
-       .resume         = palmte_panel_resume,
        .driver         = {
                .name   = "lcd_palmte",
        },
index 1a936d5c7b6f7a7a231592658a44dfe8b5fd6788..621952b5688ffbb216253c9eb76e498b540ad2fe 100644 (file)
@@ -87,26 +87,8 @@ static int palmtt_panel_probe(struct platform_device *pdev)
        return 0;
 }
 
-static int palmtt_panel_remove(struct platform_device *pdev)
-{
-       return 0;
-}
-
-static int palmtt_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
-{
-       return 0;
-}
-
-static int palmtt_panel_resume(struct platform_device *pdev)
-{
-       return 0;
-}
-
 static struct platform_driver palmtt_panel_driver = {
        .probe          = palmtt_panel_probe,
-       .remove         = palmtt_panel_remove,
-       .suspend        = palmtt_panel_suspend,
-       .resume         = palmtt_panel_resume,
        .driver         = {
                .name   = "lcd_palmtt",
        },
index a20db4f7ea99b3ff17d10d436456b474f53c282f..ccb556d17a8697eda362b25d5bcd2b678231b7f4 100644 (file)
@@ -82,27 +82,8 @@ static int palmz71_panel_probe(struct platform_device *pdev)
        return 0;
 }
 
-static int palmz71_panel_remove(struct platform_device *pdev)
-{
-       return 0;
-}
-
-static int palmz71_panel_suspend(struct platform_device *pdev,
-                                pm_message_t mesg)
-{
-       return 0;
-}
-
-static int palmz71_panel_resume(struct platform_device *pdev)
-{
-       return 0;
-}
-
 static struct platform_driver palmz71_panel_driver = {
        .probe          = palmz71_panel_probe,
-       .remove         = palmz71_panel_remove,
-       .suspend        = palmz71_panel_suspend,
-       .resume         = palmz71_panel_resume,
        .driver         = {
                .name   = "lcd_palmz71",
        },