From: Laurent Pinchart Date: Fri, 4 Aug 2017 22:43:47 +0000 (+0300) Subject: drm: omapdrm: connector-analog-tv: Remove unneeded check for OF node X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2782d41f2838912f7a98b986694616500f696945;p=openwrt%2Fstaging%2Fblogic.git drm: omapdrm: connector-analog-tv: Remove unneeded check for OF node As non-DT booting is no longer supported, the only way to instantiate the device is through an OF node, which is guaranteed to be present. Remove the unneeded check. Signed-off-by: Laurent Pinchart Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c b/drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c index e1fa143a5625..542a76503fbd 100644 --- a/drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c +++ b/drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c @@ -198,6 +198,9 @@ static int tvc_probe(struct platform_device *pdev) struct omap_dss_device *dssdev; int r; + if (!pdev->dev.of_node) + return -ENODEV; + ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); if (!ddata) return -ENOMEM;