From patchwork Sun Jun 5 13:11:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 9155541 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 3CFCD60467 for ; Sun, 5 Jun 2016 13:11:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20BFF27D45 for ; Sun, 5 Jun 2016 13:11:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 111FF281D2; Sun, 5 Jun 2016 13:11:38 +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 1978C27D45 for ; Sun, 5 Jun 2016 13:11:35 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D11D42651CF; Sun, 5 Jun 2016 15:11:31 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 62B8726057F; Sun, 5 Jun 2016 15:11:24 +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 D95512605B8; Sun, 5 Jun 2016 15:11:22 +0200 (CEST) Received: from mailrelay117.isp.belgacom.be (mailrelay117.isp.belgacom.be [195.238.20.144]) by alsa0.perex.cz (Postfix) with ESMTP id 8094A260535 for ; Sun, 5 Jun 2016 15:11:15 +0200 (CEST) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DXFADBI1RX/0MmtFtcgzqBU7hThAmGEoEbPRABAQEBAQEBZSdBAQEDCwKEIC8jKSZLJBOIM7hzhieOZwWYSI4mAo8cj1o1H4E2AYI5OjKFaVuDbgEBAQ Received: from 67.38-180-91.adsl-dyn.isp.belgacom.be (HELO dbreal2.lan) ([91.180.38.67]) by relay.skynet.be with ESMTP; 05 Jun 2016 15:11:14 +0200 From: Fabian Frederick To: Nicolin Chen Date: Sun, 5 Jun 2016 15:11:00 +0200 Message-Id: <1465132260-6617-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 1/1 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 --- 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..4818324 100644 --- a/sound/soc/codecs/cs53l30.c +++ b/sound/soc/codecs/cs53l30.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include