1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2009 Nokia Corporation
6 * Some code and ideas taken from drivers/video/omap/ driver
10 #define DSS_SUBSYS_NAME "CORE"
12 #include <linux/kernel.h>
13 #include <linux/module.h>
14 #include <linux/platform_device.h>
20 static struct platform_driver * const omap_dss_drivers[] = {
23 #ifdef CONFIG_OMAP2_DSS_DSI
26 #ifdef CONFIG_OMAP2_DSS_VENC
29 #ifdef CONFIG_OMAP4_DSS_HDMI
30 &omapdss_hdmi4hw_driver,
32 #ifdef CONFIG_OMAP5_DSS_HDMI
33 &omapdss_hdmi5hw_driver,
37 static int __init omap_dss_init(void)
39 return platform_register_drivers(omap_dss_drivers,
40 ARRAY_SIZE(omap_dss_drivers));
43 static void __exit omap_dss_exit(void)
45 platform_unregister_drivers(omap_dss_drivers,
46 ARRAY_SIZE(omap_dss_drivers));
49 module_init(omap_dss_init);
50 module_exit(omap_dss_exit);
53 MODULE_DESCRIPTION("OMAP2/3 Display Subsystem");
54 MODULE_LICENSE("GPL v2");