From: Peter Ujfalusi Date: Fri, 27 May 2016 09:58:02 +0000 (+0300) Subject: drm/omap: Remove reference to pdata->default_device X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=14c6802dfd009fd93803dbf8e7ab1acd6ac1b278;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/omap: Remove reference to pdata->default_device 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 --- diff --git a/drivers/gpu/drm/omapdrm/dss/core.c b/drivers/gpu/drm/omapdrm/dss/core.c index 7e4e5bebabbe..9cf22b30023f 100644 --- a/drivers/gpu/drm/omapdrm/dss/core.c +++ b/drivers/gpu/drm/omapdrm/dss/core.c @@ -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;