drm/omap: Remove reference to pdata->default_device
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 27 May 2016 09:58:02 +0000 (12:58 +0300)
committerPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 3 Jun 2016 13:06:33 +0000 (16:06 +0300)
The default_device is no longer used, it is a leftower from legacy. The
else if (pdata->default_device) is always going to be false.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
drivers/gpu/drm/omapdrm/dss/core.c

index 7e4e5bebabbe4f3ce98e85db13f2a0611345f065..9cf22b30023f5e40e0dc4bf7c8c09b47c03fe24d 100644 (file)
@@ -196,8 +196,6 @@ static int __init omap_dss_probe(struct platform_device *pdev)
                core.default_display_name = def_disp_name;
        else if (pdata->default_display_name)
                core.default_display_name = pdata->default_display_name;
-       else if (pdata->default_device)
-               core.default_display_name = pdata->default_device->name;
 
        return 0;