diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-06-04 14:12:16 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-06-17 13:44:47 +0300 |
commit | ede9269572da9206249f02ebe031ded025b84fd3 (patch) | |
tree | 024b2c3e33732aca92358bafa2ed1dbc25cd096d /drivers/video/fbdev/omap2/dss/rfbi.c | |
parent | f5a1a1f8e41e93584935d4ae62a84280dcdbe778 (diff) |
OMAPDSS: remove uses of __init/__exit
The following patches will add component handling to omapdss, improving
the handling of deferred probing. However, at the moment we're using
quite a lot of __inits and __exits in the driver, which prevent normal
dynamic probing and removal.
This patch removes most of the uses of __init and __exit, so that we can
register drivers after module init, and so that we can unregister
drivers even if the module is built-in.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/video/fbdev/omap2/dss/rfbi.c')
-rw-r--r-- | drivers/video/fbdev/omap2/dss/rfbi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/fbdev/omap2/dss/rfbi.c b/drivers/video/fbdev/omap2/dss/rfbi.c index 065effca9236..8ec810bce0b6 100644 --- a/drivers/video/fbdev/omap2/dss/rfbi.c +++ b/drivers/video/fbdev/omap2/dss/rfbi.c @@ -938,7 +938,7 @@ static void rfbi_init_output(struct platform_device *pdev) omapdss_register_output(out); } -static void __exit rfbi_uninit_output(struct platform_device *pdev) +static void rfbi_uninit_output(struct platform_device *pdev) { struct omap_dss_device *out = &rfbi.output; @@ -1005,7 +1005,7 @@ err_runtime_get: return r; } -static int __exit omap_rfbihw_remove(struct platform_device *pdev) +static int omap_rfbihw_remove(struct platform_device *pdev) { rfbi_uninit_output(pdev); @@ -1039,7 +1039,7 @@ static const struct dev_pm_ops rfbi_pm_ops = { static struct platform_driver omap_rfbihw_driver = { .probe = omap_rfbihw_probe, - .remove = __exit_p(omap_rfbihw_remove), + .remove = omap_rfbihw_remove, .driver = { .name = "omapdss_rfbi", .pm = &rfbi_pm_ops, @@ -1052,7 +1052,7 @@ int __init rfbi_init_platform_driver(void) return platform_driver_register(&omap_rfbihw_driver); } -void __exit rfbi_uninit_platform_driver(void) +void rfbi_uninit_platform_driver(void) { platform_driver_unregister(&omap_rfbihw_driver); } |