summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/dss/dispc.c
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2017-12-05 14:29:32 -0600
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-12-19 11:21:32 +0200
commitd66c36a3ee79747e300ac68276ca1496b567df68 (patch)
tree72fe5e2202fbbaab0f6e0636d3aaa77e31a3375e /drivers/gpu/drm/omapdrm/dss/dispc.c
parentbb5cdf8d1c76ea821af0ffa486337386a0ab66e7 (diff)
downloadblackbird-op-linux-d66c36a3ee79747e300ac68276ca1496b567df68.tar.gz
blackbird-op-linux-d66c36a3ee79747e300ac68276ca1496b567df68.zip
drm: omapdrm: Simplify platform registration
Currently, calls into each file are used to register the various platform drivers. Change this to a table of pointers to platform_driver structs to allow using platform_register_drivers. Signed-off-by: Andrew F. Davis <afd@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/dispc.c')
-rw-r--r--drivers/gpu/drm/omapdrm/dss/dispc.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.c b/drivers/gpu/drm/omapdrm/dss/dispc.c
index 34b4555d1223..4e8f68efd169 100644
--- a/drivers/gpu/drm/omapdrm/dss/dispc.c
+++ b/drivers/gpu/drm/omapdrm/dss/dispc.c
@@ -4696,7 +4696,7 @@ static const struct dev_pm_ops dispc_pm_ops = {
.runtime_resume = dispc_runtime_resume,
};
-static struct platform_driver omap_dispchw_driver = {
+struct platform_driver omap_dispchw_driver = {
.probe = dispc_probe,
.remove = dispc_remove,
.driver = {
@@ -4706,13 +4706,3 @@ static struct platform_driver omap_dispchw_driver = {
.suppress_bind_attrs = true,
},
};
-
-int __init dispc_init_platform_driver(void)
-{
- return platform_driver_register(&omap_dispchw_driver);
-}
-
-void dispc_uninit_platform_driver(void)
-{
- platform_driver_unregister(&omap_dispchw_driver);
-}
OpenPOWER on IntegriCloud