From patchwork Tue Mar 10 01:18:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 5973271 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 64EC7BF440 for ; Tue, 10 Mar 2015 01:18:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8671F20416 for ; Tue, 10 Mar 2015 01:18:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 10F292041E for ; Tue, 10 Mar 2015 01:18:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751794AbbCJBSs (ORCPT ); Mon, 9 Mar 2015 21:18:48 -0400 Received: from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:51046 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751426AbbCJBSr (ORCPT ); Mon, 9 Mar 2015 21:18:47 -0400 Received: from lanttu.localdomain (lanttu.localdomain [192.168.5.64]) by hillosipuli.retiisi.org.uk (Postfix) with ESMTP id ED92F60097; Tue, 10 Mar 2015 03:18:43 +0200 (EET) From: Sakari Ailus To: linux-media@vger.kernel.org Cc: prabhakar.csengg@gmail.com, laurent.pinchart@ideasonboard.com Subject: [PATCH 2/3] smiapp: Read link-frequencies property from the endpoint node Date: Tue, 10 Mar 2015 03:18:01 +0200 Message-Id: <1425950282-30548-3-git-send-email-sakari.ailus@iki.fi> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1425950282-30548-1-git-send-email-sakari.ailus@iki.fi> References: <1425950282-30548-1-git-send-email-sakari.ailus@iki.fi> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The documentation stated that the link-frequencies property belongs to the endpoint node, not to the device's of_node. Fix this. There are no DT board descriptions using the driver yet, so a fix in the driver is sufficient. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart Tested-by: Lad, Prabhakar Acked-by: Lad, Prabhakar --- drivers/media/i2c/smiapp/smiapp-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index 565a00c..ecae76b 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c @@ -3022,8 +3022,7 @@ static struct smiapp_platform_data *smiapp_get_pdata(struct device *dev) dev_dbg(dev, "reset %d, nvm %d, clk %d, csi %d\n", pdata->xshutdown, pdata->nvm_size, pdata->ext_clk, pdata->csi_signalling_mode); - rval = of_get_property( - dev->of_node, "link-frequencies", &asize) ? 0 : -ENOENT; + rval = of_get_property(ep, "link-frequencies", &asize) ? 0 : -ENOENT; if (rval) { dev_warn(dev, "can't get link-frequencies array size\n"); goto out_err; @@ -3037,7 +3036,7 @@ static struct smiapp_platform_data *smiapp_get_pdata(struct device *dev) asize /= sizeof(*pdata->op_sys_clock); rval = of_property_read_u64_array( - dev->of_node, "link-frequencies", pdata->op_sys_clock, asize); + ep, "link-frequencies", pdata->op_sys_clock, asize); if (rval) { dev_warn(dev, "can't get link-frequencies\n"); goto out_err;