Browse Source

drm: omapdrm: displays: Remove OF node check in encoder drivers

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>
Laurent Pinchart 7 years ago
parent
commit
1a5d98a7de

+ 0 - 5
drivers/gpu/drm/omapdrm/displays/encoder-opa362.c

@@ -179,11 +179,6 @@ static int opa362_probe(struct platform_device *pdev)
 
 
 	dev_dbg(&pdev->dev, "probe\n");
 	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);
 	ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL);
 	if (!ddata)
 	if (!ddata)
 		return -ENOMEM;
 		return -ENOMEM;

+ 0 - 3
drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c

@@ -201,9 +201,6 @@ static int tfp410_probe(struct platform_device *pdev)
 
 
 	platform_set_drvdata(pdev, ddata);
 	platform_set_drvdata(pdev, ddata);
 
 
-	if (!pdev->dev.of_node)
-		return -ENODEV;
-
 	r = tfp410_probe_of(pdev);
 	r = tfp410_probe_of(pdev);
 	if (r)
 	if (r)
 		return r;
 		return r;

+ 0 - 3
drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c

@@ -299,9 +299,6 @@ static int tpd_probe(struct platform_device *pdev)
 
 
 	platform_set_drvdata(pdev, ddata);
 	platform_set_drvdata(pdev, ddata);
 
 
-	if (!pdev->dev.of_node)
-		return -ENODEV;
-
 	r = tpd_probe_of(pdev);
 	r = tpd_probe_of(pdev);
 	if (r)
 	if (r)
 		return r;
 		return r;