diff mbox

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

Message ID 1413390649-854-1-git-send-email-anatol.pomozov@gmail.com (mailing list archive)
State Accepted
Commit 45b6e1d300b034678c42369aad3b27d37854d1fb
Headers show

Commit Message

Anatol Pomozov Oct. 15, 2014, 4:30 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. 16, 2014, 7:43 a.m. UTC | #1
On Wed, Oct 15, 2014 at 09:30:49AM -0700, Anatol Pomozov wrote:
> Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>

This doesn't apply against current code, please check and resend.
Anatol Pomozov Oct. 16, 2014, 4:34 p.m. UTC | #2
Hi

On Thu, Oct 16, 2014 at 12:43 AM, Mark Brown <broonie@kernel.org> wrote:
> On Wed, Oct 15, 2014 at 09:30:49AM -0700, Anatol Pomozov wrote:
>> Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
>
> This doesn't apply against current code, please check and resend.

Ok, I will rebase it on top of topic/rt5677 branch.
diff mbox

Patch

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