diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-02-17 17:41:13 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-11 14:44:52 +0300 |
commit | 6e7e8f06b2c77dbb5d28062a174e4d67aec4b924 (patch) | |
tree | 7d04633073c62d6ef4bb25ddbdfb0f7c09cd2666 /drivers/video/omap2/dss/dsi.c | |
parent | 61055d4b2eb164cb81af1e5940a31c7f2e53757e (diff) | |
download | linux-stable-6e7e8f06b2c77dbb5d28062a174e4d67aec4b924.tar.gz linux-stable-6e7e8f06b2c77dbb5d28062a174e4d67aec4b924.tar.bz2 linux-stable-6e7e8f06b2c77dbb5d28062a174e4d67aec4b924.zip |
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/dsi.c')
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 10 |
1 files changed, 5 insertions, 5 deletions
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) } /* DSI1 HW IP initialisation */ -static int omap_dsihw_probe(struct platform_device *dsidev) +static int __init omap_dsihw_probe(struct platform_device *dsidev) { u32 rev; int r, i, dsi_module = dsi_get_dsidev_id(dsidev); @@ -4721,7 +4721,7 @@ err_runtime_get: return r; } -static int omap_dsihw_remove(struct platform_device *dsidev) +static int __exit omap_dsihw_remove(struct platform_device *dsidev) { struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); @@ -4768,7 +4768,7 @@ static const struct dev_pm_ops dsi_pm_ops = { }; static struct platform_driver omap_dsihw_driver = { - .remove = omap_dsihw_remove, + .remove = __exit_p(omap_dsihw_remove), .driver = { .name = "omapdss_dsi", .owner = THIS_MODULE, @@ -4776,12 +4776,12 @@ static struct platform_driver omap_dsihw_driver = { }, }; -int dsi_init_platform_driver(void) +int __init dsi_init_platform_driver(void) { return platform_driver_probe(&omap_dsihw_driver, omap_dsihw_probe); } -void dsi_uninit_platform_driver(void) +void __exit dsi_uninit_platform_driver(void) { platform_driver_unregister(&omap_dsihw_driver); } |