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

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
...@@ -212,9 +212,6 @@ static int panel_dpi_probe(struct platform_device *pdev) ...@@ -212,9 +212,6 @@ static int panel_dpi_probe(struct platform_device *pdev)
struct omap_dss_device *dssdev; struct omap_dss_device *dssdev;
int r; int r;
if (!pdev->dev.of_node)
return -ENODEV;
ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL);
if (ddata == NULL) if (ddata == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -1317,9 +1317,6 @@ static int dsicm_probe(struct platform_device *pdev) ...@@ -1317,9 +1317,6 @@ static int dsicm_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, ddata); platform_set_drvdata(pdev, ddata);
ddata->pdev = pdev; ddata->pdev = pdev;
if (!pdev->dev.of_node)
return -ENODEV;
ddata->vm.hactive = 864; ddata->vm.hactive = 864;
ddata->vm.vactive = 480; ddata->vm.vactive = 480;
ddata->vm.pixelclock = 864 * 480 * 60; ddata->vm.pixelclock = 864 * 480 * 60;
......
...@@ -268,9 +268,6 @@ static int lb035q02_panel_spi_probe(struct spi_device *spi) ...@@ -268,9 +268,6 @@ static int lb035q02_panel_spi_probe(struct spi_device *spi)
ddata->spi = spi; ddata->spi = spi;
if (!spi->dev.of_node)
return -ENODEV;
r = lb035q02_probe_of(spi); r = lb035q02_probe_of(spi);
if (r) if (r)
return r; return r;
......
...@@ -277,9 +277,6 @@ static int nec_8048_probe(struct spi_device *spi) ...@@ -277,9 +277,6 @@ static int nec_8048_probe(struct spi_device *spi)
ddata->spi = spi; ddata->spi = spi;
if (!spi->dev.of_node)
return -ENODEV;
r = nec_8048_probe_of(spi); r = nec_8048_probe_of(spi);
if (r) if (r)
return r; return r;
......
...@@ -268,9 +268,6 @@ static int sharp_ls_probe(struct platform_device *pdev) ...@@ -268,9 +268,6 @@ static int sharp_ls_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, ddata); platform_set_drvdata(pdev, ddata);
if (!pdev->dev.of_node)
return -ENODEV;
r = sharp_ls_probe_of(pdev); r = sharp_ls_probe_of(pdev);
if (r) if (r)
return r; return r;
......
...@@ -720,9 +720,6 @@ static int acx565akm_probe(struct spi_device *spi) ...@@ -720,9 +720,6 @@ static int acx565akm_probe(struct spi_device *spi)
dev_dbg(&spi->dev, "%s\n", __func__); dev_dbg(&spi->dev, "%s\n", __func__);
if (!spi->dev.of_node)
return -ENODEV;
spi->mode = SPI_MODE_3; spi->mode = SPI_MODE_3;
ddata = devm_kzalloc(&spi->dev, sizeof(*ddata), GFP_KERNEL); ddata = devm_kzalloc(&spi->dev, sizeof(*ddata), GFP_KERNEL);
......
...@@ -404,9 +404,6 @@ static int td028ttec1_panel_probe(struct spi_device *spi) ...@@ -404,9 +404,6 @@ static int td028ttec1_panel_probe(struct spi_device *spi)
ddata->spi_dev = spi; ddata->spi_dev = spi;
if (!spi->dev.of_node)
return -ENODEV;
r = td028ttec1_probe_of(spi); r = td028ttec1_probe_of(spi);
if (r) if (r)
return r; return r;
......
...@@ -509,9 +509,6 @@ static int tpo_td043_probe(struct spi_device *spi) ...@@ -509,9 +509,6 @@ static int tpo_td043_probe(struct spi_device *spi)
ddata->spi = spi; ddata->spi = spi;
if (!spi->dev.of_node)
return -ENODEV;
r = tpo_td043_probe_of(spi); r = tpo_td043_probe_of(spi);
if (r) if (r)
return r; return r;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment