From patchwork Wed Jun 10 12:46:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 11597845 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9CE94138C for ; Wed, 10 Jun 2020 12:46:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8CD992074B for ; Wed, 10 Jun 2020 12:46:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728965AbgFJMqg (ORCPT ); Wed, 10 Jun 2020 08:46:36 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:50566 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728540AbgFJMqg (ORCPT ); Wed, 10 Jun 2020 08:46:36 -0400 Received: from Q.local (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 22782FDA; Wed, 10 Jun 2020 14:46:29 +0200 (CEST) From: Kieran Bingham To: Jacopo Mondi , linux-renesas-soc@vger.kernel.org Cc: Laurent Pinchart , =?utf-8?q?Niklas_S?= =?utf-8?q?=C3=B6derlund?= , Kieran Bingham Subject: [PATCH v9.2 4/9] fixes! [max9286]: Remove redundant DPHY check Date: Wed, 10 Jun 2020 13:46:18 +0100 Message-Id: <20200610124623.51085-5-kieran@bingham.xyz> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200610124623.51085-1-kieran@bingham.xyz> References: <20200610124623.51085-1-kieran@bingham.xyz> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Kieran Bingham 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 --- 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);