]> Git Repo - linux.git/blob - drivers/gpu/drm/omapdrm/dss/core.c
Merge tag 'media/v5.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[linux.git] / drivers / gpu / drm / omapdrm / dss / core.c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Copyright (C) 2009 Nokia Corporation
4  * Author: Tomi Valkeinen <[email protected]>
5  *
6  * Some code and ideas taken from drivers/video/omap/ driver
7  * by Imre Deak.
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 /* INIT */
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 <[email protected]>");
53 MODULE_DESCRIPTION("OMAP2/3 Display Subsystem");
54 MODULE_LICENSE("GPL v2");
55
This page took 0.040446 seconds and 4 git commands to generate.