]> www.infradead.org Git - users/willy/linux.git/commitdiff
drm: omapdrm: displays: Remove OF node check in encoder drivers
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 11 Feb 2018 13:07:37 +0000 (15:07 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 1 Mar 2018 07:09:10 +0000 (09:09 +0200)
No encoder 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/encoder-opa362.c
drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c
drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c

index d523c67a3ae36ead9fc51de55e376712267b98c3..b424db11c6d5ade657dd0da255966f3f3ec7c5e6 100644 (file)
@@ -179,11 +179,6 @@ static int opa362_probe(struct platform_device *pdev)
 
        dev_dbg(&pdev->dev, "probe\n");
 
-       if (node == NULL) {
-               dev_err(&pdev->dev, "Unable to find device tree\n");
-               return -EINVAL;
-       }
-
        ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL);
        if (!ddata)
                return -ENOMEM;
index e01ab3db6d86b3f0bd4a77f656b6c1020371b5e3..e0bc625a5f3ae3f054f91e1ff8d2ca0594ed2d54 100644 (file)
@@ -201,9 +201,6 @@ static int tfp410_probe(struct platform_device *pdev)
 
        platform_set_drvdata(pdev, ddata);
 
-       if (!pdev->dev.of_node)
-               return -ENODEV;
-
        r = tfp410_probe_of(pdev);
        if (r)
                return r;
index 1fd493e5fa3dd0d2d683790803eb91908af834c3..fb8f9ce7e5c2fec7cdc076087303ca7c51380aa5 100644 (file)
@@ -299,9 +299,6 @@ static int tpd_probe(struct platform_device *pdev)
 
        platform_set_drvdata(pdev, ddata);
 
-       if (!pdev->dev.of_node)
-               return -ENODEV;
-
        r = tpd_probe_of(pdev);
        if (r)
                return r;