From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752777AbcFFRgM (ORCPT ); Mon, 6 Jun 2016 13:36:12 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:34620 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751704AbcFFRgJ (ORCPT ); Mon, 6 Jun 2016 13:36:09 -0400 Date: Mon, 6 Jun 2016 10:36:12 -0700 From: Nicolin Chen To: Fabian Frederick Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 linux-next] ASoC: cs53l30: include gpio/consumer.h Message-ID: <20160606173612.GA32417@Asurada-Nvidia> References: <1465232753-32492-1-git-send-email-fabf@skynet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1465232753-32492-1-git-send-email-fabf@skynet.be> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 06, 2016 at 07:05:53PM +0200, Fabian Frederick wrote: > 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: Nicolin Chen Thank you > --- > 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 > -- > 2.1.4 >