aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/dpi.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-02-17 10:41:13 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-05-11 07:44:52 -0400
commit6e7e8f06b2c77dbb5d28062a174e4d67aec4b924 (patch)
tree7d04633073c62d6ef4bb25ddbdfb0f7c09cd2666 /drivers/video/omap2/dss/dpi.c
parent61055d4b2eb164cb81af1e5940a31c7f2e53757e (diff)
OMAPDSS: add __init & __exit
Now that we are using platform_driver_probe() we can add __inits and __exits all around. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dpi.c')
-rw-r--r--drivers/video/omap2/dss/dpi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/omap2/dss/dpi.c b/drivers/video/omap2/dss/dpi.c
index 9316fd138be..6061379559c 100644
--- a/drivers/video/omap2/dss/dpi.c
+++ b/drivers/video/omap2/dss/dpi.c
@@ -365,30 +365,30 @@ int dpi_init_display(struct omap_dss_device *dssdev)
365 return 0; 365 return 0;
366} 366}
367 367
368static int omap_dpi_probe(struct platform_device *pdev) 368static int __init omap_dpi_probe(struct platform_device *pdev)
369{ 369{
370 return 0; 370 return 0;
371} 371}
372 372
373static int omap_dpi_remove(struct platform_device *pdev) 373static int __exit omap_dpi_remove(struct platform_device *pdev)
374{ 374{
375 return 0; 375 return 0;
376} 376}
377 377
378static struct platform_driver omap_dpi_driver = { 378static struct platform_driver omap_dpi_driver = {
379 .remove = omap_dpi_remove, 379 .remove = __exit_p(omap_dpi_remove),
380 .driver = { 380 .driver = {
381 .name = "omapdss_dpi", 381 .name = "omapdss_dpi",
382 .owner = THIS_MODULE, 382 .owner = THIS_MODULE,
383 }, 383 },
384}; 384};
385 385
386int dpi_init_platform_driver(void) 386int __init dpi_init_platform_driver(void)
387{ 387{
388 return platform_driver_probe(&omap_dpi_driver, omap_dpi_probe); 388 return platform_driver_probe(&omap_dpi_driver, omap_dpi_probe);
389} 389}
390 390
391void dpi_uninit_platform_driver(void) 391void __exit dpi_uninit_platform_driver(void)
392{ 392{
393 platform_driver_unregister(&omap_dpi_driver); 393 platform_driver_unregister(&omap_dpi_driver);
394} 394}