diff mbox

ASoC: rt5677: fix warnings when kernel compiled without GPIOLIB support

Message ID 1413477658-35049-1-git-send-email-anatol.pomozov@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Anatol Pomozov Oct. 16, 2014, 4:40 p.m. UTC
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
---
 sound/soc/codecs/rt5677.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Mark Brown Oct. 17, 2014, 9:48 a.m. UTC | #1
On Thu, Oct 16, 2014 at 09:40:58AM -0700, Anatol Pomozov wrote:
> Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>

Applied, with a fixed subject - this isn't just a warning, it's a build
failure.
Anatol Pomozov Oct. 17, 2014, 1:06 p.m. UTC | #2
Hi

On Fri, Oct 17, 2014 at 2:48 AM, Mark Brown <broonie@kernel.org> wrote:

> On Thu, Oct 16, 2014 at 09:40:58AM -0700, Anatol Pomozov wrote:
> > Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
>
> Applied, with a fixed subject - this isn't just a warning, it's a build
> failure.
>

Thanks!
diff mbox

Patch

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)
 {
 }