summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-09-22 09:08:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-10-01 08:26:07 +0200
commitdd80c5974bfda55aa78ec0a619e8b346d4930a6b (patch)
tree4ce27b2495e234ca86627010a762d5ce8dca4b36 /drivers/video
parente8e387731b46cc0c22ef40c9247a43a71e556802 (diff)
downloadbarebox-dd80c5974bfda55aa78ec0a619e8b346d4930a6b.tar.gz
barebox-dd80c5974bfda55aa78ec0a619e8b346d4930a6b.tar.xz
video: ipuv3: imx-ldb: remove unused variable
endpoint is set but not used. Remove the code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/imx-ipu-v3/imx-ldb.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/video/imx-ipu-v3/imx-ldb.c b/drivers/video/imx-ipu-v3/imx-ldb.c
index db5f8b631d..2f49ed22e9 100644
--- a/drivers/video/imx-ipu-v3/imx-ldb.c
+++ b/drivers/video/imx-ipu-v3/imx-ldb.c
@@ -308,7 +308,6 @@ static int imx_ldb_probe(struct device_d *dev)
for_each_child_of_node(np, child) {
struct imx_ldb_channel *channel;
struct device_node *port;
- struct device_node *endpoint;
ret = of_property_read_u32(child, "reg", &i);
if (ret || i < 0 || i > 1)
@@ -334,12 +333,6 @@ static int imx_ldb_probe(struct device_d *dev)
continue;
}
- endpoint = of_get_child_by_name(port, "endpoint");
- if (!endpoint) {
- dev_warn(dev, "No endpoint found on %s\n", port->full_name);
- continue;
- }
-
channel->vpl.node = child;
channel->vpl.ioctl = &imx_ldb_ioctl;
ret = vpl_register(&channel->vpl);