summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/sdi.c
diff options
context:
space:
mode:
authorTomi Valkeinen2012-02-17 16:41:13 +0100
committerTomi Valkeinen2012-05-11 13:44:52 +0200
commit6e7e8f06b2c77dbb5d28062a174e4d67aec4b924 (patch)
tree7d04633073c62d6ef4bb25ddbdfb0f7c09cd2666 /drivers/video/omap2/dss/sdi.c
parentOMAPDSS: use platform_driver_probe for dsi/hdmi/rfbi/venc/dpi/sdi (diff)
downloadkernel-qcow2-linux-6e7e8f06b2c77dbb5d28062a174e4d67aec4b924.tar.gz
kernel-qcow2-linux-6e7e8f06b2c77dbb5d28062a174e4d67aec4b924.tar.xz
kernel-qcow2-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/sdi.c')
-rw-r--r--drivers/video/omap2/dss/sdi.c10
1 files changed, 5 insertions, 5 deletions
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)
return 0;
}
-static int omap_sdi_probe(struct platform_device *pdev)
+static int __init omap_sdi_probe(struct platform_device *pdev)
{
return 0;
}
-static int omap_sdi_remove(struct platform_device *pdev)
+static int __exit omap_sdi_remove(struct platform_device *pdev)
{
return 0;
}
static struct platform_driver omap_sdi_driver = {
- .remove = omap_sdi_remove,
+ .remove = __exit_p(omap_sdi_remove),
.driver = {
.name = "omapdss_sdi",
.owner = THIS_MODULE,
},
};
-int sdi_init_platform_driver(void)
+int __init sdi_init_platform_driver(void)
{
return platform_driver_probe(&omap_sdi_driver, omap_sdi_probe);
}
-void sdi_uninit_platform_driver(void)
+void __exit sdi_uninit_platform_driver(void)
{
platform_driver_unregister(&omap_sdi_driver);
}