diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2015-12-07 07:32:28 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-12-07 07:32:28 -0500 |
commit | a1eb9d5751220433998ae2e66216288161b1355b (patch) | |
tree | 85360a4caed471999f3ad13d3f43df758a9fcac4 /sound | |
parent | 286d31f06d6cbc07c08c8b9df8ab42f3287eebba (diff) |
ASoC: ac97: fix parent assignment
Upstream GPIO has substituted .dev for .parent in struct gpio_chip.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/soc-ac97.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-ac97.c b/sound/soc/soc-ac97.c index ae563e379a72..a2012652f212 100644 --- a/sound/soc/soc-ac97.c +++ b/sound/soc/soc-ac97.c | |||
@@ -142,7 +142,7 @@ static int snd_soc_ac97_init_gpio(struct snd_ac97 *ac97, | |||
142 | gpio_priv->codec = codec; | 142 | gpio_priv->codec = codec; |
143 | gpio_priv->gpio_chip = snd_soc_ac97_gpio_chip; | 143 | gpio_priv->gpio_chip = snd_soc_ac97_gpio_chip; |
144 | gpio_priv->gpio_chip.ngpio = AC97_NUM_GPIOS; | 144 | gpio_priv->gpio_chip.ngpio = AC97_NUM_GPIOS; |
145 | gpio_priv->gpio_chip.dev = codec->dev; | 145 | gpio_priv->gpio_chip.parent = codec->dev; |
146 | gpio_priv->gpio_chip.base = -1; | 146 | gpio_priv->gpio_chip.base = -1; |
147 | 147 | ||
148 | ret = gpiochip_add(&gpio_priv->gpio_chip); | 148 | ret = gpiochip_add(&gpio_priv->gpio_chip); |