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

Anatol Pomozov anatol.pomozov at gmail.com
Thu Oct 16 18:40:58 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 3b63772..f6df276 100644
--- a/sound/soc/codecs/rt5677.c
+++ b/sound/soc/codecs/rt5677.c
@@ -3649,6 +3649,11 @@ static void rt5677_free_gpio(struct i2c_client *i2c)
 		dev_err(&i2c->dev, "Failed to remove GPIOs: %d\n", ret);
 }
 #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