[alsa-devel] [PATCH] ASoC: rt5677: fix warnings when kernel compiled without GPIOLIB support

Anatol Pomozov anatol.pomozov at gmail.com
Wed Oct 15 18:30:49 CEST 2014


Signed-off-by: Anatol Pomozov <anatol.pomozov at gmail.com>
---
 sound/soc/codecs/rt5677.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c
index d1fc9a1..2f0d19f 100644
--- a/sound/soc/codecs/rt5677.c
+++ b/sound/soc/codecs/rt5677.c
@@ -3686,6 +3686,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)
 {
 }
-- 
2.1.0.rc2.206.gedb03e5



More information about the Alsa-devel mailing list