Commit 6b06df83 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Tomi Valkeinen
Browse files

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



No panel is instantiated through platform data anymore, there is no
need to check for OF node presence.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 1a5d98a7
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -212,9 +212,6 @@ static int panel_dpi_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 == NULL)
		return -ENOMEM;
+0 −3
Original line number Diff line number Diff line
@@ -1317,9 +1317,6 @@ static int dsicm_probe(struct platform_device *pdev)
	platform_set_drvdata(pdev, ddata);
	ddata->pdev = pdev;

	if (!pdev->dev.of_node)
		return -ENODEV;

	ddata->vm.hactive = 864;
	ddata->vm.vactive = 480;
	ddata->vm.pixelclock = 864 * 480 * 60;
+0 −3
Original line number Diff line number Diff line
@@ -268,9 +268,6 @@ static int lb035q02_panel_spi_probe(struct spi_device *spi)

	ddata->spi = spi;

	if (!spi->dev.of_node)
		return -ENODEV;

	r = lb035q02_probe_of(spi);
	if (r)
		return r;
+0 −3
Original line number Diff line number Diff line
@@ -277,9 +277,6 @@ static int nec_8048_probe(struct spi_device *spi)

	ddata->spi = spi;

	if (!spi->dev.of_node)
		return -ENODEV;

	r = nec_8048_probe_of(spi);
	if (r)
		return r;
+0 −3
Original line number Diff line number Diff line
@@ -268,9 +268,6 @@ static int sharp_ls_probe(struct platform_device *pdev)

	platform_set_drvdata(pdev, ddata);

	if (!pdev->dev.of_node)
		return -ENODEV;

	r = sharp_ls_probe_of(pdev);
	if (r)
		return r;
Loading