diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-03-02 01:25:32 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-09-03 16:13:26 +0300 |
commit | 67822ae11971c664f5d28d7914b4b00cff07a9fd (patch) | |
tree | aea870df10bd1a4c8432c2cd1a1cf190c865b832 /drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c | |
parent | 4e0bb06c0b9a025a5a52f93ecef7658d8f8c3c06 (diff) | |
download | linux-stable-67822ae11971c664f5d28d7914b4b00cff07a9fd.tar.gz linux-stable-67822ae11971c664f5d28d7914b4b00cff07a9fd.tar.bz2 linux-stable-67822ae11971c664f5d28d7914b4b00cff07a9fd.zip |
drm/omap: dss: Remove panel devices list
The panel devices list isn't used anymore, all panel devices are
accessed through the global devices list. Remove it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c b/drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c index ae3976a97ce2..49720117da15 100644 --- a/drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c +++ b/drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c @@ -154,7 +154,6 @@ static int tvc_probe(struct platform_device *pdev) { struct panel_drv_data *ddata; struct omap_dss_device *dssdev; - int r; ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); if (!ddata) @@ -172,11 +171,7 @@ static int tvc_probe(struct platform_device *pdev) dssdev->owner = THIS_MODULE; omapdss_display_init(dssdev); - r = omapdss_register_display(dssdev); - if (r) { - dev_err(&pdev->dev, "Failed to register panel\n"); - return r; - } + omapdss_device_register(dssdev); return 0; } @@ -186,7 +181,7 @@ static int __exit tvc_remove(struct platform_device *pdev) struct panel_drv_data *ddata = platform_get_drvdata(pdev); struct omap_dss_device *dssdev = &ddata->dssdev; - omapdss_unregister_display(&ddata->dssdev); + omapdss_device_unregister(&ddata->dssdev); tvc_disable(dssdev); omapdss_device_disconnect(dssdev, NULL); |