Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev: omap/lcd: Remove no-op driver callbacks

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>

authored by

Lars-Peter Clausen and committed by
Bartlomiej Zolnierkiewicz
0ed71116 0a9aae40

-167
-19
drivers/video/fbdev/omap/lcd_ams_delta.c
··· 195 195 return 0; 196 196 } 197 197 198 - static int ams_delta_panel_remove(struct platform_device *pdev) 199 - { 200 - return 0; 201 - } 202 - 203 - static int ams_delta_panel_suspend(struct platform_device *pdev, 204 - pm_message_t mesg) 205 - { 206 - return 0; 207 - } 208 - 209 - static int ams_delta_panel_resume(struct platform_device *pdev) 210 - { 211 - return 0; 212 - } 213 - 214 198 static struct platform_driver ams_delta_panel_driver = { 215 199 .probe = ams_delta_panel_probe, 216 - .remove = ams_delta_panel_remove, 217 - .suspend = ams_delta_panel_suspend, 218 - .resume = ams_delta_panel_resume, 219 200 .driver = { 220 201 .name = "lcd_ams_delta", 221 202 },
-18
drivers/video/fbdev/omap/lcd_h3.c
··· 98 98 return 0; 99 99 } 100 100 101 - static int h3_panel_remove(struct platform_device *pdev) 102 - { 103 - return 0; 104 - } 105 - 106 - static int h3_panel_suspend(struct platform_device *pdev, pm_message_t mesg) 107 - { 108 - return 0; 109 - } 110 - 111 - static int h3_panel_resume(struct platform_device *pdev) 112 - { 113 - return 0; 114 - } 115 - 116 101 static struct platform_driver h3_panel_driver = { 117 102 .probe = h3_panel_probe, 118 - .remove = h3_panel_remove, 119 - .suspend = h3_panel_suspend, 120 - .resume = h3_panel_resume, 121 103 .driver = { 122 104 .name = "lcd_h3", 123 105 },
-19
drivers/video/fbdev/omap/lcd_htcherald.c
··· 88 88 return 0; 89 89 } 90 90 91 - static int htcherald_panel_remove(struct platform_device *pdev) 92 - { 93 - return 0; 94 - } 95 - 96 - static int htcherald_panel_suspend(struct platform_device *pdev, 97 - pm_message_t mesg) 98 - { 99 - return 0; 100 - } 101 - 102 - static int htcherald_panel_resume(struct platform_device *pdev) 103 - { 104 - return 0; 105 - } 106 - 107 91 static struct platform_driver htcherald_panel_driver = { 108 92 .probe = htcherald_panel_probe, 109 - .remove = htcherald_panel_remove, 110 - .suspend = htcherald_panel_suspend, 111 - .resume = htcherald_panel_resume, 112 93 .driver = { 113 94 .name = "lcd_htcherald", 114 95 },
-19
drivers/video/fbdev/omap/lcd_inn1510.c
··· 83 83 return 0; 84 84 } 85 85 86 - static int innovator1510_panel_remove(struct platform_device *pdev) 87 - { 88 - return 0; 89 - } 90 - 91 - static int innovator1510_panel_suspend(struct platform_device *pdev, 92 - pm_message_t mesg) 93 - { 94 - return 0; 95 - } 96 - 97 - static int innovator1510_panel_resume(struct platform_device *pdev) 98 - { 99 - return 0; 100 - } 101 - 102 86 static struct platform_driver innovator1510_panel_driver = { 103 87 .probe = innovator1510_panel_probe, 104 - .remove = innovator1510_panel_remove, 105 - .suspend = innovator1510_panel_suspend, 106 - .resume = innovator1510_panel_resume, 107 88 .driver = { 108 89 .name = "lcd_inn1510", 109 90 },
-19
drivers/video/fbdev/omap/lcd_inn1610.c
··· 104 104 return 0; 105 105 } 106 106 107 - static int innovator1610_panel_remove(struct platform_device *pdev) 108 - { 109 - return 0; 110 - } 111 - 112 - static int innovator1610_panel_suspend(struct platform_device *pdev, 113 - pm_message_t mesg) 114 - { 115 - return 0; 116 - } 117 - 118 - static int innovator1610_panel_resume(struct platform_device *pdev) 119 - { 120 - return 0; 121 - } 122 - 123 107 static struct platform_driver innovator1610_panel_driver = { 124 108 .probe = innovator1610_panel_probe, 125 - .remove = innovator1610_panel_remove, 126 - .suspend = innovator1610_panel_suspend, 127 - .resume = innovator1610_panel_resume, 128 109 .driver = { 129 110 .name = "lcd_inn1610", 130 111 },
-18
drivers/video/fbdev/omap/lcd_osk.c
··· 103 103 return 0; 104 104 } 105 105 106 - static int osk_panel_remove(struct platform_device *pdev) 107 - { 108 - return 0; 109 - } 110 - 111 - static int osk_panel_suspend(struct platform_device *pdev, pm_message_t mesg) 112 - { 113 - return 0; 114 - } 115 - 116 - static int osk_panel_resume(struct platform_device *pdev) 117 - { 118 - return 0; 119 - } 120 - 121 106 static struct platform_driver osk_panel_driver = { 122 107 .probe = osk_panel_probe, 123 - .remove = osk_panel_remove, 124 - .suspend = osk_panel_suspend, 125 - .resume = osk_panel_resume, 126 108 .driver = { 127 109 .name = "lcd_osk", 128 110 },
-18
drivers/video/fbdev/omap/lcd_palmte.c
··· 81 81 return 0; 82 82 } 83 83 84 - static int palmte_panel_remove(struct platform_device *pdev) 85 - { 86 - return 0; 87 - } 88 - 89 - static int palmte_panel_suspend(struct platform_device *pdev, pm_message_t mesg) 90 - { 91 - return 0; 92 - } 93 - 94 - static int palmte_panel_resume(struct platform_device *pdev) 95 - { 96 - return 0; 97 - } 98 - 99 84 static struct platform_driver palmte_panel_driver = { 100 85 .probe = palmte_panel_probe, 101 - .remove = palmte_panel_remove, 102 - .suspend = palmte_panel_suspend, 103 - .resume = palmte_panel_resume, 104 86 .driver = { 105 87 .name = "lcd_palmte", 106 88 },
-18
drivers/video/fbdev/omap/lcd_palmtt.c
··· 87 87 return 0; 88 88 } 89 89 90 - static int palmtt_panel_remove(struct platform_device *pdev) 91 - { 92 - return 0; 93 - } 94 - 95 - static int palmtt_panel_suspend(struct platform_device *pdev, pm_message_t mesg) 96 - { 97 - return 0; 98 - } 99 - 100 - static int palmtt_panel_resume(struct platform_device *pdev) 101 - { 102 - return 0; 103 - } 104 - 105 90 static struct platform_driver palmtt_panel_driver = { 106 91 .probe = palmtt_panel_probe, 107 - .remove = palmtt_panel_remove, 108 - .suspend = palmtt_panel_suspend, 109 - .resume = palmtt_panel_resume, 110 92 .driver = { 111 93 .name = "lcd_palmtt", 112 94 },
-19
drivers/video/fbdev/omap/lcd_palmz71.c
··· 82 82 return 0; 83 83 } 84 84 85 - static int palmz71_panel_remove(struct platform_device *pdev) 86 - { 87 - return 0; 88 - } 89 - 90 - static int palmz71_panel_suspend(struct platform_device *pdev, 91 - pm_message_t mesg) 92 - { 93 - return 0; 94 - } 95 - 96 - static int palmz71_panel_resume(struct platform_device *pdev) 97 - { 98 - return 0; 99 - } 100 - 101 85 static struct platform_driver palmz71_panel_driver = { 102 86 .probe = palmz71_panel_probe, 103 - .remove = palmz71_panel_remove, 104 - .suspend = palmz71_panel_suspend, 105 - .resume = palmz71_panel_resume, 106 87 .driver = { 107 88 .name = "lcd_palmz71", 108 89 },