Message ID | 1411424546-12718-1-git-send-email-srinivas.kandagatla@linaro.org |
---|---|
State | Accepted |
Commit | 89d7ce5a0f159ffa99d0521b4336b922acdc7ac5 |
Headers | show
Return-Path: <patchwork-forward+bncBC27VH7PV4DBBL6CQKQQKGQEEU4GVEI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B5C43202A1 for <linaro@patches.linaro.org>; Mon, 22 Sep 2014 22:22:40 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id a1sf1971598wgh.5 for <linaro@patches.linaro.org>; Mon, 22 Sep 2014 15:22:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=2u1dcoMyQcdjZ8WYKraPwdGX1TXK2QKzIohvPyocsvY=; b=VDt312xeJzOiNnbWPuc0/D4nr7RHeHhdOdcWo1ZhoNaoTeqJTVDnc6aPPAxDOT2DTg AokhyO/a162vdcfqH2hsDy3J8V4915ArpLTPqDFE9/zHYJBRcelOwNybbrmvo6Zgcp80 NSuowkqyOJGlyRXO2oa7RfP/eEmXbZOn3sZPgATOOM30mc6xyZR1HXKhNYpXLTbYcz0R qfR58uircR6ibk78MbERqbW5TmdVK4IBU/Akk435bE5tXkQXBQRnBStgM2D3mIioy/H/ UXnjKyAdcmDYdDCOSnhSyBsUotEwSGFoiJ5ZbBgELNq8OCeuy3ddH5NP8yUuqvZUcqKR yU5A== X-Gm-Message-State: ALoCoQlfeVgRmYCbmZHzwJXXe7PoxLmC0gxW52bunJBqTEt9A4FHZJWcXU9O5DtwrweitVP4+LKT X-Received: by 10.194.201.198 with SMTP id kc6mr4845415wjc.0.1411424559936; Mon, 22 Sep 2014 15:22:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.134 with SMTP id b6ls525108laa.77.gmail; Mon, 22 Sep 2014 15:22:39 -0700 (PDT) X-Received: by 10.112.13.132 with SMTP id h4mr27158633lbc.45.1411424559740; Mon, 22 Sep 2014 15:22:39 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by mx.google.com with ESMTPS id li6si11405788lbc.87.2014.09.22.15.22.39 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Sep 2014 15:22:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id pn19so7503399lab.8 for <patchwork-forward@linaro.org>; Mon, 22 Sep 2014 15:22:39 -0700 (PDT) X-Received: by 10.152.4.165 with SMTP id l5mr16931660lal.49.1411424559669; Mon, 22 Sep 2014 15:22:39 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp321640lbb; Mon, 22 Sep 2014 15:22:38 -0700 (PDT) X-Received: by 10.68.137.65 with SMTP id qg1mr28648899pbb.116.1411424558130; Mon, 22 Sep 2014 15:22:38 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zs1si17427388pbc.225.2014.09.22.15.22.37 for <multiple recipients>; Mon, 22 Sep 2014 15:22:38 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755128AbaIVWWd (ORCPT <rfc822;ankit.jindal@linaro.org> + 27 others); Mon, 22 Sep 2014 18:22:33 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:40850 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755079AbaIVWWb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 22 Sep 2014 18:22:31 -0400 Received: by mail-wg0-f45.google.com with SMTP id x13so3019578wgg.16 for <linux-kernel@vger.kernel.org>; Mon, 22 Sep 2014 15:22:30 -0700 (PDT) X-Received: by 10.194.205.196 with SMTP id li4mr22952675wjc.46.1411424550672; Mon, 22 Sep 2014 15:22:30 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-78-149-10-230.as13285.net. [78.149.10.230]) by mx.google.com with ESMTPSA id eq9sm117612wic.20.2014.09.22.15.22.29 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Sep 2014 15:22:29 -0700 (PDT) From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> To: Mauro Carvalho Chehab <m.chehab@samsung.com> Cc: Maxime Coquelin <maxime.coquelin@st.com>, Patrice Chotard <patrice.chotard@st.com>, linux-arm-kernel@lists.infradead.org, kernel@stlinux.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [PATCH 1/3] media: st-rc: move to using reset_control_get_optional Date: Mon, 22 Sep 2014 23:22:26 +0100 Message-Id: <1411424546-12718-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411424501-12673-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1411424501-12673-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/media/rc/st_rc.c b/drivers/media/rc/st_rc.c index 5c15135..e0f1312 100644 --- a/drivers/media/rc/st_rc.c +++ b/drivers/media/rc/st_rc.c @@ -278,7 +278,7 @@ static int st_rc_probe(struct platform_device *pdev) rc_dev->rx_base = rc_dev->base; - rc_dev->rstc = reset_control_get(dev, NULL); + rc_dev->rstc = reset_control_get_optional(dev, NULL); if (IS_ERR(rc_dev->rstc)) rc_dev->rstc = NULL;
This patch fixes a compilation error while building with the random kernel configuration. drivers/media/rc/st_rc.c: In function 'st_rc_probe': drivers/media/rc/st_rc.c:281:2: error: implicit declaration of function 'reset_control_get' [-Werror=implicit-function-declaration] rc_dev->rstc = reset_control_get(dev, NULL); drivers/media/rc/st_rc.c:281:15: warning: assignment makes pointer from integer without a cast [enabled by default] rc_dev->rstc = reset_control_get(dev, NULL); Reported-by: Jim Davis <jim.epost@gmail.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> --- drivers/media/rc/st_rc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)