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/dpi.c | |
parent | 61055d4b2eb164cb81af1e5940a31c7f2e53757e (diff) | |
download | talos-obmc-linux-6e7e8f06b2c77dbb5d28062a174e4d67aec4b924.tar.gz talos-obmc-linux-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/dpi.c')
-rw-r--r-- | drivers/video/omap2/dss/dpi.c | 10 |
1 files changed, 5 insertions, 5 deletions
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) return 0; } -static int omap_dpi_probe(struct platform_device *pdev) +static int __init omap_dpi_probe(struct platform_device *pdev) { return 0; } -static int omap_dpi_remove(struct platform_device *pdev) +static int __exit omap_dpi_remove(struct platform_device *pdev) { return 0; } static struct platform_driver omap_dpi_driver = { - .remove = omap_dpi_remove, + .remove = __exit_p(omap_dpi_remove), .driver = { .name = "omapdss_dpi", .owner = THIS_MODULE, }, }; -int dpi_init_platform_driver(void) +int __init dpi_init_platform_driver(void) { return platform_driver_probe(&omap_dpi_driver, omap_dpi_probe); } -void dpi_uninit_platform_driver(void) +void __exit dpi_uninit_platform_driver(void) { platform_driver_unregister(&omap_dpi_driver); } |