OMAPDSS: init omap_dss_devices internally
Now that each output driver creates their own display devices, the output drivers can also initialize those devices. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
@@ -339,7 +339,7 @@ int dpi_check_timings(struct omap_dss_device *dssdev,
|
||||
}
|
||||
EXPORT_SYMBOL(dpi_check_timings);
|
||||
|
||||
int dpi_init_display(struct omap_dss_device *dssdev)
|
||||
static int __init dpi_init_display(struct omap_dss_device *dssdev)
|
||||
{
|
||||
DSSDBG("init_display\n");
|
||||
|
||||
@@ -376,6 +376,12 @@ static int __init omap_dpi_probe(struct platform_device *pdev)
|
||||
if (dssdev->type != OMAP_DISPLAY_TYPE_DPI)
|
||||
continue;
|
||||
|
||||
r = dpi_init_display(dssdev);
|
||||
if (r) {
|
||||
DSSERR("device %s init failed: %d\n", dssdev->name, r);
|
||||
continue;
|
||||
}
|
||||
|
||||
r = omap_dss_register_device(dssdev, &pdev->dev, i);
|
||||
if (r)
|
||||
DSSERR("device %s register failed: %d\n",
|
||||
|
Reference in New Issue
Block a user