This source file includes following definitions.
- omap_dss_init
- omap_dss_exit
1
2
3
4
5
6
7
8
9
10 #define DSS_SUBSYS_NAME "CORE"
11
12 #include <linux/kernel.h>
13 #include <linux/module.h>
14 #include <linux/platform_device.h>
15
16 #include "omapdss.h"
17 #include "dss.h"
18
19
20 static struct platform_driver * const omap_dss_drivers[] = {
21 &omap_dsshw_driver,
22 &omap_dispchw_driver,
23 #ifdef CONFIG_OMAP2_DSS_DSI
24 &omap_dsihw_driver,
25 #endif
26 #ifdef CONFIG_OMAP2_DSS_VENC
27 &omap_venchw_driver,
28 #endif
29 #ifdef CONFIG_OMAP4_DSS_HDMI
30 &omapdss_hdmi4hw_driver,
31 #endif
32 #ifdef CONFIG_OMAP5_DSS_HDMI
33 &omapdss_hdmi5hw_driver,
34 #endif
35 };
36
37 static int __init omap_dss_init(void)
38 {
39 return platform_register_drivers(omap_dss_drivers,
40 ARRAY_SIZE(omap_dss_drivers));
41 }
42
43 static void __exit omap_dss_exit(void)
44 {
45 platform_unregister_drivers(omap_dss_drivers,
46 ARRAY_SIZE(omap_dss_drivers));
47 }
48
49 module_init(omap_dss_init);
50 module_exit(omap_dss_exit);
51
52 MODULE_AUTHOR("Tomi Valkeinen <tomi.valkeinen@ti.com>");
53 MODULE_DESCRIPTION("OMAP2/3 Display Subsystem");
54 MODULE_LICENSE("GPL v2");
55