From: Anatol Pomozov Date: Thu, 16 Oct 2014 16:40:58 +0000 (-0700) Subject: ASoC: rt5677: fix build when kernel compiled without GPIOLIB support X-Git-Tag: v3.19-rc1~119^2~20^2~12^4~14 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=45b6e1d300b034678c42369aad3b27d37854d1fb;p=karo-tx-linux.git ASoC: rt5677: fix build when kernel compiled without GPIOLIB support Signed-off-by: Anatol Pomozov Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c index caada9192f0f..d17d079fdcf3 100644 --- a/sound/soc/codecs/rt5677.c +++ b/sound/soc/codecs/rt5677.c @@ -3646,6 +3646,11 @@ static void rt5677_free_gpio(struct i2c_client *i2c) gpiochip_remove(&rt5677->gpio_chip); } #else +static void rt5677_gpio_config(struct rt5677_priv *rt5677, unsigned offset, + int value) +{ +} + static void rt5677_init_gpio(struct i2c_client *i2c) { }