From patchwork Mon Jun 6 17:05:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 9158863 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8D92160759 for ; Mon, 6 Jun 2016 17:06:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B2262834C for ; Mon, 6 Jun 2016 17:06:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E08B2834D; Mon, 6 Jun 2016 17:06:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2FF228348 for ; Mon, 6 Jun 2016 17:06:28 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 73842265AAC; Mon, 6 Jun 2016 19:06:26 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 817EC265921; Mon, 6 Jun 2016 19:06:18 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6B3EF2659B2; Mon, 6 Jun 2016 19:06:17 +0200 (CEST) Received: from mailrelay110.isp.belgacom.be (mailrelay110.isp.belgacom.be [195.238.20.137]) by alsa0.perex.cz (Postfix) with ESMTP id 593D22658E5 for ; Mon, 6 Jun 2016 19:06:10 +0200 (CEST) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2C3FQDPrFVX/0MmtFtbgzuBU7hLhAmGEoE0PRABAQEBAQEBZSdBAQEBAQEBCAIChCAvIykmSyQTiDO7R4YnjmcFmEiIe4UrAo8cj1o1H4E2AQuCLjoyhXWBTHSBZAEBAQ Received: from 67.38-180-91.adsl-dyn.isp.belgacom.be (HELO dbreal2.lan) ([91.180.38.67]) by relay.skynet.be with ESMTP; 06 Jun 2016 19:06:08 +0200 From: Fabian Frederick To: Nicolin Chen Date: Mon, 6 Jun 2016 19:05:53 +0200 Message-Id: <1465232753-32492-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 2.1.4 Cc: fabf@skynet.be, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH V2 linux-next] ASoC: cs53l30: include gpio/consumer.h X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP cs53l30 breaks kernel compilation when CONFIG_GPIOLIB is disabled. sound/soc/codecs/cs53l30.c:931:2: error: implicit declaration of function devm_gpiod_get_optional [-Werror=implicit-function-declaration] cs53l30->reset_gpio = devm_gpiod_get_optional(dev, "reset", ^ sound/soc/codecs/cs53l30.c:932:13: error: GPIOD_OUT_LOW undeclared (first use in this function) Including gpio/consumer.h declares minimal functions in that case. Signed-off-by: Fabian Frederick Acked-by: Paul Handrigan Acked-by: Nicolin Chen --- V2: Add in alphabetical order (suggested by Nicolin Chen) sound/soc/codecs/cs53l30.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c index ac90dd7..4f6ede9 100644 --- a/sound/soc/codecs/cs53l30.c +++ b/sound/soc/codecs/cs53l30.c @@ -14,6 +14,7 @@ #include #include +#include #include #include #include