drm: omapdrm: displays: Remove OF node check in connector drivers
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 11 Feb 2018 13:07:36 +0000 (15:07 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 1 Mar 2018 07:09:10 +0000 (09:09 +0200)
No connector is instantiated through platform data anymore, there is no
need to check for OF node presence.

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>
drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c
drivers/gpu/drm/omapdrm/displays/connector-dvi.c
drivers/gpu/drm/omapdrm/displays/connector-hdmi.c

index d3a79d5088555506867fe33d054eefba0589e8c6..e6b87adea933d350033594f10eb8ec99dc259eb3 100644 (file)
@@ -196,9 +196,6 @@ 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;
index 10b4b97d359571a28fb0cb254822323fc46b784c..6716aef41c7ecb206159ca9d7a9091a26412029c 100644 (file)
@@ -275,9 +275,6 @@ static int dvic_probe(struct platform_device *pdev)
 
        platform_set_drvdata(pdev, ddata);
 
-       if (!pdev->dev.of_node)
-               return -ENODEV;
-
        r = dvic_probe_of(pdev);
        if (r)
                return r;
index 2867476419dc3ec9de9c18ce7083fb96baf7ead8..c152c5dfb4a0dc0eed00c8e61d881ce29df865f4 100644 (file)
@@ -336,9 +336,6 @@ static int hdmic_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, ddata);
        ddata->dev = &pdev->dev;
 
-       if (!pdev->dev.of_node)
-               return -ENODEV;
-
        r = hdmic_probe_of(pdev);
        if (r)
                return r;