From patchwork Mon Sep 22 22:22:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 4951131 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7030DBEEA5 for ; Mon, 22 Sep 2014 22:25:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AD40D2024C for ; Mon, 22 Sep 2014 22:25:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E0EE0201FA for ; Mon, 22 Sep 2014 22:25:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XWC0W-0000Dp-4F; Mon, 22 Sep 2014 22:22:56 +0000 Received: from mail-we0-f181.google.com ([74.125.82.181]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XWC0S-00006H-PH for linux-arm-kernel@lists.infradead.org; Mon, 22 Sep 2014 22:22:53 +0000 Received: by mail-we0-f181.google.com with SMTP id w61so1771816wes.26 for ; Mon, 22 Sep 2014 15:22:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qKfuuyBGwV3N9zE6rKzB+/U36euMn0mE2xPWL/GcJDs=; b=lgzHOwC3Z1jfwoK8j4fxm9P3XQjXGHmfAwnJKtNZmAWdVuBeEi0uN2uYChes8HjIt0 sb5h/f8HMOf+hTA2FpQuGGx25ffn+j9NEc3yuLyILg/a4qAwxuz6C6oxsaZfIAchMHON COSE8iryX3X6gPmTcr1I4OHd/9594YJaNjaxHtIuQpDzeRc3dw3WhkLVWCLUzcakDkBi OdKz8+VhH5dZMdvVbkEaX37ALdGcWi8XFGSd+gchnxPHYyDdX9XnMdef/8OpL36y12BO qy/6tD6kBuWDupdlJ5bNax21C99u1CglIS/fprhUYweTyboJtj+Xza9B6jo3kXaK8YSn 77jA== X-Gm-Message-State: ALoCoQlvI/6JC/bYzFS/itEG4EbEPhbQoASb856Kz6VYxzTpgdnGelKY52VE1Trg2HJ8IJ/rdheU 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 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Sep 2014 15:22:29 -0700 (PDT) From: Srinivas Kandagatla To: Mauro Carvalho Chehab 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140922_152252_972973_97059D68 X-CRM114-Status: GOOD ( 11.39 ) X-Spam-Score: -0.7 (/) Cc: kernel@stlinux.com, linux-kernel@vger.kernel.org, Patrice Chotard , Srinivas Kandagatla , Maxime Coquelin , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 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 Signed-off-by: Srinivas Kandagatla Acked-by: Peter Griffin --- drivers/media/rc/st_rc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;