diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-02-17 10:41:13 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-11 07:44:52 -0400 |
commit | 6e7e8f06b2c77dbb5d28062a174e4d67aec4b924 (patch) | |
tree | 7d04633073c62d6ef4bb25ddbdfb0f7c09cd2666 /drivers/video | |
parent | 61055d4b2eb164cb81af1e5940a31c7f2e53757e (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')
-rw-r--r-- | drivers/video/omap2/dss/core.c | 4 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dispc.c | 10 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dpi.c | 10 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 10 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.c | 8 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.h | 30 | ||||
-rw-r--r-- | drivers/video/omap2/dss/hdmi.c | 10 | ||||
-rw-r--r-- | drivers/video/omap2/dss/rfbi.c | 10 | ||||
-rw-r--r-- | drivers/video/omap2/dss/sdi.c | 10 | ||||
-rw-r--r-- | drivers/video/omap2/dss/venc.c | 10 |
10 files changed, 56 insertions, 56 deletions
diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c index c54bba04cb00..9b84f134357e 100644 --- a/drivers/video/omap2/dss/core.c +++ b/drivers/video/omap2/dss/core.c | |||
@@ -203,7 +203,7 @@ static inline int dss_debugfs_create_file(const char *name, | |||
203 | #endif /* CONFIG_DEBUG_FS && CONFIG_OMAP2_DSS_DEBUG_SUPPORT */ | 203 | #endif /* CONFIG_DEBUG_FS && CONFIG_OMAP2_DSS_DEBUG_SUPPORT */ |
204 | 204 | ||
205 | /* PLATFORM DEVICE */ | 205 | /* PLATFORM DEVICE */ |
206 | static int omap_dss_probe(struct platform_device *pdev) | 206 | static int __init omap_dss_probe(struct platform_device *pdev) |
207 | { | 207 | { |
208 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; | 208 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; |
209 | int r; | 209 | int r; |
@@ -483,7 +483,7 @@ static void omap_dss_unregister_device(struct omap_dss_device *dssdev) | |||
483 | } | 483 | } |
484 | 484 | ||
485 | /* BUS */ | 485 | /* BUS */ |
486 | static int omap_dss_bus_register(void) | 486 | static int __init omap_dss_bus_register(void) |
487 | { | 487 | { |
488 | int r; | 488 | int r; |
489 | 489 | ||
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index 534f931229cd..b509ca661e35 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c | |||
@@ -3482,7 +3482,7 @@ static void _omap_dispc_initial_config(void) | |||
3482 | } | 3482 | } |
3483 | 3483 | ||
3484 | /* DISPC HW IP initialisation */ | 3484 | /* DISPC HW IP initialisation */ |
3485 | static int omap_dispchw_probe(struct platform_device *pdev) | 3485 | static int __init omap_dispchw_probe(struct platform_device *pdev) |
3486 | { | 3486 | { |
3487 | u32 rev; | 3487 | u32 rev; |
3488 | int r = 0; | 3488 | int r = 0; |
@@ -3564,7 +3564,7 @@ err_runtime_get: | |||
3564 | return r; | 3564 | return r; |
3565 | } | 3565 | } |
3566 | 3566 | ||
3567 | static int omap_dispchw_remove(struct platform_device *pdev) | 3567 | static int __exit omap_dispchw_remove(struct platform_device *pdev) |
3568 | { | 3568 | { |
3569 | pm_runtime_disable(&pdev->dev); | 3569 | pm_runtime_disable(&pdev->dev); |
3570 | 3570 | ||
@@ -3593,7 +3593,7 @@ static const struct dev_pm_ops dispc_pm_ops = { | |||
3593 | }; | 3593 | }; |
3594 | 3594 | ||
3595 | static struct platform_driver omap_dispchw_driver = { | 3595 | static struct platform_driver omap_dispchw_driver = { |
3596 | .remove = omap_dispchw_remove, | 3596 | .remove = __exit_p(omap_dispchw_remove), |
3597 | .driver = { | 3597 | .driver = { |
3598 | .name = "omapdss_dispc", | 3598 | .name = "omapdss_dispc", |
3599 | .owner = THIS_MODULE, | 3599 | .owner = THIS_MODULE, |
@@ -3601,12 +3601,12 @@ static struct platform_driver omap_dispchw_driver = { | |||
3601 | }, | 3601 | }, |
3602 | }; | 3602 | }; |
3603 | 3603 | ||
3604 | int dispc_init_platform_driver(void) | 3604 | int __init dispc_init_platform_driver(void) |
3605 | { | 3605 | { |
3606 | return platform_driver_probe(&omap_dispchw_driver, omap_dispchw_probe); | 3606 | return platform_driver_probe(&omap_dispchw_driver, omap_dispchw_probe); |
3607 | } | 3607 | } |
3608 | 3608 | ||
3609 | void dispc_uninit_platform_driver(void) | 3609 | void __exit dispc_uninit_platform_driver(void) |
3610 | { | 3610 | { |
3611 | platform_driver_unregister(&omap_dispchw_driver); | 3611 | platform_driver_unregister(&omap_dispchw_driver); |
3612 | } | 3612 | } |
diff --git a/drivers/video/omap2/dss/dpi.c b/drivers/video/omap2/dss/dpi.c index 9316fd138be1..6061379559c3 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 | ||
368 | static int omap_dpi_probe(struct platform_device *pdev) | 368 | static int __init omap_dpi_probe(struct platform_device *pdev) |
369 | { | 369 | { |
370 | return 0; | 370 | return 0; |
371 | } | 371 | } |
372 | 372 | ||
373 | static int omap_dpi_remove(struct platform_device *pdev) | 373 | static int __exit omap_dpi_remove(struct platform_device *pdev) |
374 | { | 374 | { |
375 | return 0; | 375 | return 0; |
376 | } | 376 | } |
377 | 377 | ||
378 | static struct platform_driver omap_dpi_driver = { | 378 | static 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 | ||
386 | int dpi_init_platform_driver(void) | 386 | int __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 | ||
391 | void dpi_uninit_platform_driver(void) | 391 | void __exit dpi_uninit_platform_driver(void) |
392 | { | 392 | { |
393 | platform_driver_unregister(&omap_dpi_driver); | 393 | platform_driver_unregister(&omap_dpi_driver); |
394 | } | 394 | } |
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index ce9a78acbcbb..ddea71ea2a0f 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c | |||
@@ -4608,7 +4608,7 @@ static void dsi_put_clocks(struct platform_device *dsidev) | |||
4608 | } | 4608 | } |
4609 | 4609 | ||
4610 | /* DSI1 HW IP initialisation */ | 4610 | /* DSI1 HW IP initialisation */ |
4611 | static int omap_dsihw_probe(struct platform_device *dsidev) | 4611 | static int __init omap_dsihw_probe(struct platform_device *dsidev) |
4612 | { | 4612 | { |
4613 | u32 rev; | 4613 | u32 rev; |
4614 | int r, i, dsi_module = dsi_get_dsidev_id(dsidev); | 4614 | int r, i, dsi_module = dsi_get_dsidev_id(dsidev); |
@@ -4721,7 +4721,7 @@ err_runtime_get: | |||
4721 | return r; | 4721 | return r; |
4722 | } | 4722 | } |
4723 | 4723 | ||
4724 | static int omap_dsihw_remove(struct platform_device *dsidev) | 4724 | static int __exit omap_dsihw_remove(struct platform_device *dsidev) |
4725 | { | 4725 | { |
4726 | struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); | 4726 | struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); |
4727 | 4727 | ||
@@ -4768,7 +4768,7 @@ static const struct dev_pm_ops dsi_pm_ops = { | |||
4768 | }; | 4768 | }; |
4769 | 4769 | ||
4770 | static struct platform_driver omap_dsihw_driver = { | 4770 | static struct platform_driver omap_dsihw_driver = { |
4771 | .remove = omap_dsihw_remove, | 4771 | .remove = __exit_p(omap_dsihw_remove), |
4772 | .driver = { | 4772 | .driver = { |
4773 | .name = "omapdss_dsi", | 4773 | .name = "omapdss_dsi", |
4774 | .owner = THIS_MODULE, | 4774 | .owner = THIS_MODULE, |
@@ -4776,12 +4776,12 @@ static struct platform_driver omap_dsihw_driver = { | |||
4776 | }, | 4776 | }, |
4777 | }; | 4777 | }; |
4778 | 4778 | ||
4779 | int dsi_init_platform_driver(void) | 4779 | int __init dsi_init_platform_driver(void) |
4780 | { | 4780 | { |
4781 | return platform_driver_probe(&omap_dsihw_driver, omap_dsihw_probe); | 4781 | return platform_driver_probe(&omap_dsihw_driver, omap_dsihw_probe); |
4782 | } | 4782 | } |
4783 | 4783 | ||
4784 | void dsi_uninit_platform_driver(void) | 4784 | void __exit dsi_uninit_platform_driver(void) |
4785 | { | 4785 | { |
4786 | platform_driver_unregister(&omap_dsihw_driver); | 4786 | platform_driver_unregister(&omap_dsihw_driver); |
4787 | } | 4787 | } |
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index 08bee78191d6..2183f840a7ac 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c | |||
@@ -744,7 +744,7 @@ void dss_debug_dump_clocks(struct seq_file *s) | |||
744 | #endif | 744 | #endif |
745 | 745 | ||
746 | /* DSS HW IP initialisation */ | 746 | /* DSS HW IP initialisation */ |
747 | static int omap_dsshw_probe(struct platform_device *pdev) | 747 | static int __init omap_dsshw_probe(struct platform_device *pdev) |
748 | { | 748 | { |
749 | struct resource *dss_mem; | 749 | struct resource *dss_mem; |
750 | u32 rev; | 750 | u32 rev; |
@@ -805,7 +805,7 @@ err_runtime_get: | |||
805 | return r; | 805 | return r; |
806 | } | 806 | } |
807 | 807 | ||
808 | static int omap_dsshw_remove(struct platform_device *pdev) | 808 | static int __exit omap_dsshw_remove(struct platform_device *pdev) |
809 | { | 809 | { |
810 | pm_runtime_disable(&pdev->dev); | 810 | pm_runtime_disable(&pdev->dev); |
811 | 811 | ||
@@ -845,7 +845,7 @@ static const struct dev_pm_ops dss_pm_ops = { | |||
845 | }; | 845 | }; |
846 | 846 | ||
847 | static struct platform_driver omap_dsshw_driver = { | 847 | static struct platform_driver omap_dsshw_driver = { |
848 | .remove = omap_dsshw_remove, | 848 | .remove = __exit_p(omap_dsshw_remove), |
849 | .driver = { | 849 | .driver = { |
850 | .name = "omapdss_dss", | 850 | .name = "omapdss_dss", |
851 | .owner = THIS_MODULE, | 851 | .owner = THIS_MODULE, |
@@ -853,7 +853,7 @@ static struct platform_driver omap_dsshw_driver = { | |||
853 | }, | 853 | }, |
854 | }; | 854 | }; |
855 | 855 | ||
856 | int dss_init_platform_driver(void) | 856 | int __init dss_init_platform_driver(void) |
857 | { | 857 | { |
858 | return platform_driver_probe(&omap_dsshw_driver, omap_dsshw_probe); | 858 | return platform_driver_probe(&omap_dsshw_driver, omap_dsshw_probe); |
859 | } | 859 | } |
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h index 5faddf06aa0b..7bc24ed8de8e 100644 --- a/drivers/video/omap2/dss/dss.h +++ b/drivers/video/omap2/dss/dss.h | |||
@@ -231,7 +231,7 @@ int dss_ovl_check(struct omap_overlay *ovl, struct omap_overlay_info *info, | |||
231 | const struct omap_video_timings *mgr_timings); | 231 | const struct omap_video_timings *mgr_timings); |
232 | 232 | ||
233 | /* DSS */ | 233 | /* DSS */ |
234 | int dss_init_platform_driver(void); | 234 | int dss_init_platform_driver(void) __init; |
235 | void dss_uninit_platform_driver(void); | 235 | void dss_uninit_platform_driver(void); |
236 | 236 | ||
237 | void dss_select_hdmi_venc_clk_source(enum dss_hdmi_venc_clk_source_select); | 237 | void dss_select_hdmi_venc_clk_source(enum dss_hdmi_venc_clk_source_select); |
@@ -268,8 +268,8 @@ int dss_calc_clock_div(bool is_tft, unsigned long req_pck, | |||
268 | struct dispc_clock_info *dispc_cinfo); | 268 | struct dispc_clock_info *dispc_cinfo); |
269 | 269 | ||
270 | /* SDI */ | 270 | /* SDI */ |
271 | int sdi_init_platform_driver(void); | 271 | int sdi_init_platform_driver(void) __init; |
272 | void sdi_uninit_platform_driver(void); | 272 | void sdi_uninit_platform_driver(void) __exit; |
273 | int sdi_init_display(struct omap_dss_device *display); | 273 | int sdi_init_display(struct omap_dss_device *display); |
274 | 274 | ||
275 | /* DSI */ | 275 | /* DSI */ |
@@ -278,8 +278,8 @@ int sdi_init_display(struct omap_dss_device *display); | |||
278 | struct dentry; | 278 | struct dentry; |
279 | struct file_operations; | 279 | struct file_operations; |
280 | 280 | ||
281 | int dsi_init_platform_driver(void); | 281 | int dsi_init_platform_driver(void) __init; |
282 | void dsi_uninit_platform_driver(void); | 282 | void dsi_uninit_platform_driver(void) __exit; |
283 | 283 | ||
284 | int dsi_runtime_get(struct platform_device *dsidev); | 284 | int dsi_runtime_get(struct platform_device *dsidev); |
285 | void dsi_runtime_put(struct platform_device *dsidev); | 285 | void dsi_runtime_put(struct platform_device *dsidev); |
@@ -359,13 +359,13 @@ static inline struct platform_device *dsi_get_dsidev_from_id(int module) | |||
359 | #endif | 359 | #endif |
360 | 360 | ||
361 | /* DPI */ | 361 | /* DPI */ |
362 | int dpi_init_platform_driver(void); | 362 | int dpi_init_platform_driver(void) __init; |
363 | void dpi_uninit_platform_driver(void); | 363 | void dpi_uninit_platform_driver(void) __exit; |
364 | int dpi_init_display(struct omap_dss_device *dssdev); | 364 | int dpi_init_display(struct omap_dss_device *dssdev); |
365 | 365 | ||
366 | /* DISPC */ | 366 | /* DISPC */ |
367 | int dispc_init_platform_driver(void); | 367 | int dispc_init_platform_driver(void) __init; |
368 | void dispc_uninit_platform_driver(void); | 368 | void dispc_uninit_platform_driver(void) __exit; |
369 | void dispc_dump_clocks(struct seq_file *s); | 369 | void dispc_dump_clocks(struct seq_file *s); |
370 | void dispc_irq_handler(void); | 370 | void dispc_irq_handler(void); |
371 | 371 | ||
@@ -430,8 +430,8 @@ void dispc_mgr_setup(enum omap_channel channel, | |||
430 | 430 | ||
431 | /* VENC */ | 431 | /* VENC */ |
432 | #ifdef CONFIG_OMAP2_DSS_VENC | 432 | #ifdef CONFIG_OMAP2_DSS_VENC |
433 | int venc_init_platform_driver(void); | 433 | int venc_init_platform_driver(void) __init; |
434 | void venc_uninit_platform_driver(void); | 434 | void venc_uninit_platform_driver(void) __exit; |
435 | int venc_init_display(struct omap_dss_device *display); | 435 | int venc_init_display(struct omap_dss_device *display); |
436 | unsigned long venc_get_pixel_clock(void); | 436 | unsigned long venc_get_pixel_clock(void); |
437 | #else | 437 | #else |
@@ -444,8 +444,8 @@ static inline unsigned long venc_get_pixel_clock(void) | |||
444 | 444 | ||
445 | /* HDMI */ | 445 | /* HDMI */ |
446 | #ifdef CONFIG_OMAP4_DSS_HDMI | 446 | #ifdef CONFIG_OMAP4_DSS_HDMI |
447 | int hdmi_init_platform_driver(void); | 447 | int hdmi_init_platform_driver(void) __init; |
448 | void hdmi_uninit_platform_driver(void); | 448 | void hdmi_uninit_platform_driver(void) __exit; |
449 | int hdmi_init_display(struct omap_dss_device *dssdev); | 449 | int hdmi_init_display(struct omap_dss_device *dssdev); |
450 | unsigned long hdmi_get_pixel_clock(void); | 450 | unsigned long hdmi_get_pixel_clock(void); |
451 | #else | 451 | #else |
@@ -470,8 +470,8 @@ int hdmi_panel_init(void); | |||
470 | void hdmi_panel_exit(void); | 470 | void hdmi_panel_exit(void); |
471 | 471 | ||
472 | /* RFBI */ | 472 | /* RFBI */ |
473 | int rfbi_init_platform_driver(void); | 473 | int rfbi_init_platform_driver(void) __init; |
474 | void rfbi_uninit_platform_driver(void); | 474 | void rfbi_uninit_platform_driver(void) __exit; |
475 | int rfbi_init_display(struct omap_dss_device *display); | 475 | int rfbi_init_display(struct omap_dss_device *display); |
476 | 476 | ||
477 | 477 | ||
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index d955491ed3cd..09ede7fa1983 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c | |||
@@ -772,7 +772,7 @@ static void hdmi_put_clocks(void) | |||
772 | } | 772 | } |
773 | 773 | ||
774 | /* HDMI HW IP initialisation */ | 774 | /* HDMI HW IP initialisation */ |
775 | static int omapdss_hdmihw_probe(struct platform_device *pdev) | 775 | static int __init omapdss_hdmihw_probe(struct platform_device *pdev) |
776 | { | 776 | { |
777 | struct resource *hdmi_mem; | 777 | struct resource *hdmi_mem; |
778 | int r; | 778 | int r; |
@@ -826,7 +826,7 @@ static int omapdss_hdmihw_probe(struct platform_device *pdev) | |||
826 | return 0; | 826 | return 0; |
827 | } | 827 | } |
828 | 828 | ||
829 | static int omapdss_hdmihw_remove(struct platform_device *pdev) | 829 | static int __exit omapdss_hdmihw_remove(struct platform_device *pdev) |
830 | { | 830 | { |
831 | hdmi_panel_exit(); | 831 | hdmi_panel_exit(); |
832 | 832 | ||
@@ -872,7 +872,7 @@ static const struct dev_pm_ops hdmi_pm_ops = { | |||
872 | }; | 872 | }; |
873 | 873 | ||
874 | static struct platform_driver omapdss_hdmihw_driver = { | 874 | static struct platform_driver omapdss_hdmihw_driver = { |
875 | .remove = omapdss_hdmihw_remove, | 875 | .remove = __exit_p(omapdss_hdmihw_remove), |
876 | .driver = { | 876 | .driver = { |
877 | .name = "omapdss_hdmi", | 877 | .name = "omapdss_hdmi", |
878 | .owner = THIS_MODULE, | 878 | .owner = THIS_MODULE, |
@@ -880,12 +880,12 @@ static struct platform_driver omapdss_hdmihw_driver = { | |||
880 | }, | 880 | }, |
881 | }; | 881 | }; |
882 | 882 | ||
883 | int hdmi_init_platform_driver(void) | 883 | int __init hdmi_init_platform_driver(void) |
884 | { | 884 | { |
885 | return platform_driver_probe(&omapdss_hdmihw_driver, omapdss_hdmihw_probe); | 885 | return platform_driver_probe(&omapdss_hdmihw_driver, omapdss_hdmihw_probe); |
886 | } | 886 | } |
887 | 887 | ||
888 | void hdmi_uninit_platform_driver(void) | 888 | void __exit hdmi_uninit_platform_driver(void) |
889 | { | 889 | { |
890 | platform_driver_unregister(&omapdss_hdmihw_driver); | 890 | platform_driver_unregister(&omapdss_hdmihw_driver); |
891 | } | 891 | } |
diff --git a/drivers/video/omap2/dss/rfbi.c b/drivers/video/omap2/dss/rfbi.c index f18d726b6126..58da146254ee 100644 --- a/drivers/video/omap2/dss/rfbi.c +++ b/drivers/video/omap2/dss/rfbi.c | |||
@@ -928,7 +928,7 @@ int rfbi_init_display(struct omap_dss_device *dssdev) | |||
928 | } | 928 | } |
929 | 929 | ||
930 | /* RFBI HW IP initialisation */ | 930 | /* RFBI HW IP initialisation */ |
931 | static int omap_rfbihw_probe(struct platform_device *pdev) | 931 | static int __init omap_rfbihw_probe(struct platform_device *pdev) |
932 | { | 932 | { |
933 | u32 rev; | 933 | u32 rev; |
934 | struct resource *rfbi_mem; | 934 | struct resource *rfbi_mem; |
@@ -985,7 +985,7 @@ err_runtime_get: | |||
985 | return r; | 985 | return r; |
986 | } | 986 | } |
987 | 987 | ||
988 | static int omap_rfbihw_remove(struct platform_device *pdev) | 988 | static int __exit omap_rfbihw_remove(struct platform_device *pdev) |
989 | { | 989 | { |
990 | pm_runtime_disable(&pdev->dev); | 990 | pm_runtime_disable(&pdev->dev); |
991 | return 0; | 991 | return 0; |
@@ -1015,7 +1015,7 @@ static const struct dev_pm_ops rfbi_pm_ops = { | |||
1015 | }; | 1015 | }; |
1016 | 1016 | ||
1017 | static struct platform_driver omap_rfbihw_driver = { | 1017 | static struct platform_driver omap_rfbihw_driver = { |
1018 | .remove = omap_rfbihw_remove, | 1018 | .remove = __exit_p(omap_rfbihw_remove), |
1019 | .driver = { | 1019 | .driver = { |
1020 | .name = "omapdss_rfbi", | 1020 | .name = "omapdss_rfbi", |
1021 | .owner = THIS_MODULE, | 1021 | .owner = THIS_MODULE, |
@@ -1023,12 +1023,12 @@ static struct platform_driver omap_rfbihw_driver = { | |||
1023 | }, | 1023 | }, |
1024 | }; | 1024 | }; |
1025 | 1025 | ||
1026 | int rfbi_init_platform_driver(void) | 1026 | int __init rfbi_init_platform_driver(void) |
1027 | { | 1027 | { |
1028 | return platform_driver_probe(&omap_rfbihw_driver, omap_rfbihw_probe); | 1028 | return platform_driver_probe(&omap_rfbihw_driver, omap_rfbihw_probe); |
1029 | } | 1029 | } |
1030 | 1030 | ||
1031 | void rfbi_uninit_platform_driver(void) | 1031 | void __exit rfbi_uninit_platform_driver(void) |
1032 | { | 1032 | { |
1033 | platform_driver_unregister(&omap_rfbihw_driver); | 1033 | platform_driver_unregister(&omap_rfbihw_driver); |
1034 | } | 1034 | } |
diff --git a/drivers/video/omap2/dss/sdi.c b/drivers/video/omap2/dss/sdi.c index b154d28b1614..661b594225a2 100644 --- a/drivers/video/omap2/dss/sdi.c +++ b/drivers/video/omap2/dss/sdi.c | |||
@@ -176,30 +176,30 @@ int sdi_init_display(struct omap_dss_device *dssdev) | |||
176 | return 0; | 176 | return 0; |
177 | } | 177 | } |
178 | 178 | ||
179 | static int omap_sdi_probe(struct platform_device *pdev) | 179 | static int __init omap_sdi_probe(struct platform_device *pdev) |
180 | { | 180 | { |
181 | return 0; | 181 | return 0; |
182 | } | 182 | } |
183 | 183 | ||
184 | static int omap_sdi_remove(struct platform_device *pdev) | 184 | static int __exit omap_sdi_remove(struct platform_device *pdev) |
185 | { | 185 | { |
186 | return 0; | 186 | return 0; |
187 | } | 187 | } |
188 | 188 | ||
189 | static struct platform_driver omap_sdi_driver = { | 189 | static struct platform_driver omap_sdi_driver = { |
190 | .remove = omap_sdi_remove, | 190 | .remove = __exit_p(omap_sdi_remove), |
191 | .driver = { | 191 | .driver = { |
192 | .name = "omapdss_sdi", | 192 | .name = "omapdss_sdi", |
193 | .owner = THIS_MODULE, | 193 | .owner = THIS_MODULE, |
194 | }, | 194 | }, |
195 | }; | 195 | }; |
196 | 196 | ||
197 | int sdi_init_platform_driver(void) | 197 | int __init sdi_init_platform_driver(void) |
198 | { | 198 | { |
199 | return platform_driver_probe(&omap_sdi_driver, omap_sdi_probe); | 199 | return platform_driver_probe(&omap_sdi_driver, omap_sdi_probe); |
200 | } | 200 | } |
201 | 201 | ||
202 | void sdi_uninit_platform_driver(void) | 202 | void __exit sdi_uninit_platform_driver(void) |
203 | { | 203 | { |
204 | platform_driver_unregister(&omap_sdi_driver); | 204 | platform_driver_unregister(&omap_sdi_driver); |
205 | } | 205 | } |
diff --git a/drivers/video/omap2/dss/venc.c b/drivers/video/omap2/dss/venc.c index 1756b4fa7c67..7322ac8a3bcc 100644 --- a/drivers/video/omap2/dss/venc.c +++ b/drivers/video/omap2/dss/venc.c | |||
@@ -830,7 +830,7 @@ static void venc_put_clocks(void) | |||
830 | } | 830 | } |
831 | 831 | ||
832 | /* VENC HW IP initialisation */ | 832 | /* VENC HW IP initialisation */ |
833 | static int omap_venchw_probe(struct platform_device *pdev) | 833 | static int __init omap_venchw_probe(struct platform_device *pdev) |
834 | { | 834 | { |
835 | u8 rev_id; | 835 | u8 rev_id; |
836 | struct resource *venc_mem; | 836 | struct resource *venc_mem; |
@@ -885,7 +885,7 @@ err_runtime_get: | |||
885 | return r; | 885 | return r; |
886 | } | 886 | } |
887 | 887 | ||
888 | static int omap_venchw_remove(struct platform_device *pdev) | 888 | static int __exit omap_venchw_remove(struct platform_device *pdev) |
889 | { | 889 | { |
890 | if (venc.vdda_dac_reg != NULL) { | 890 | if (venc.vdda_dac_reg != NULL) { |
891 | regulator_put(venc.vdda_dac_reg); | 891 | regulator_put(venc.vdda_dac_reg); |
@@ -929,7 +929,7 @@ static const struct dev_pm_ops venc_pm_ops = { | |||
929 | }; | 929 | }; |
930 | 930 | ||
931 | static struct platform_driver omap_venchw_driver = { | 931 | static struct platform_driver omap_venchw_driver = { |
932 | .remove = omap_venchw_remove, | 932 | .remove = __exit_p(omap_venchw_remove), |
933 | .driver = { | 933 | .driver = { |
934 | .name = "omapdss_venc", | 934 | .name = "omapdss_venc", |
935 | .owner = THIS_MODULE, | 935 | .owner = THIS_MODULE, |
@@ -937,7 +937,7 @@ static struct platform_driver omap_venchw_driver = { | |||
937 | }, | 937 | }, |
938 | }; | 938 | }; |
939 | 939 | ||
940 | int venc_init_platform_driver(void) | 940 | int __init venc_init_platform_driver(void) |
941 | { | 941 | { |
942 | if (cpu_is_omap44xx()) | 942 | if (cpu_is_omap44xx()) |
943 | return 0; | 943 | return 0; |
@@ -945,7 +945,7 @@ int venc_init_platform_driver(void) | |||
945 | return platform_driver_probe(&omap_venchw_driver, omap_venchw_probe); | 945 | return platform_driver_probe(&omap_venchw_driver, omap_venchw_probe); |
946 | } | 946 | } |
947 | 947 | ||
948 | void venc_uninit_platform_driver(void) | 948 | void __exit venc_uninit_platform_driver(void) |
949 | { | 949 | { |
950 | if (cpu_is_omap44xx()) | 950 | if (cpu_is_omap44xx()) |
951 | return; | 951 | return; |