Skip to content

Commit

Permalink
ASoC: rt5677: fix build when kernel compiled without GPIOLIB support
Browse files Browse the repository at this point in the history
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Anatol Pomozov authored and Mark Brown committed Oct 20, 2014
1 parent 8a4bd60 commit 45b6e1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sound/soc/codecs/rt5677.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}
Expand Down

0 comments on commit 45b6e1d

Please sign in to comment.