[PATCH v9.2 4/9] fixes! [max9286]: Remove redundant DPHY check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Kieran Bingham <kieran.bingham+renesas@xxxxxxxxxxxxxxxx>

The vep.bus_type is set as a parameter to v4l2_fwnode_endpoint_parse.
It will not be changed by the framework, so checking it is redundant.

Remove the extra check.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@xxxxxxxxxxxxxxxx>
---
 drivers/media/i2c/max9286.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c
index 807024a9a149..e170540a5d72 100644
--- a/drivers/media/i2c/max9286.c
+++ b/drivers/media/i2c/max9286.c
@@ -1174,15 +1174,6 @@ static int max9286_parse_dt(struct max9286_priv *priv)
 				return ret;
 			}
 
-			if (vep.bus_type != V4L2_MBUS_CSI2_DPHY) {
-				dev_err(dev,
-					"Media bus %u type not supported\n",
-					vep.bus_type);
-				v4l2_fwnode_endpoint_free(&vep);
-				of_node_put(node);
-				return -EINVAL;
-			}
-
 			priv->csi2_data_lanes =
 				vep.bus.mipi_csi2.num_data_lanes;
 			v4l2_fwnode_endpoint_free(&vep);
-- 
2.25.1




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux