mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
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>
This commit is contained in:
parent
286d31f06d
commit
a1eb9d5751
@ -142,7 +142,7 @@ static int snd_soc_ac97_init_gpio(struct snd_ac97 *ac97,
|
||||
gpio_priv->codec = codec;
|
||||
gpio_priv->gpio_chip = snd_soc_ac97_gpio_chip;
|
||||
gpio_priv->gpio_chip.ngpio = AC97_NUM_GPIOS;
|
||||
gpio_priv->gpio_chip.dev = codec->dev;
|
||||
gpio_priv->gpio_chip.parent = codec->dev;
|
||||
gpio_priv->gpio_chip.base = -1;
|
||||
|
||||
ret = gpiochip_add(&gpio_priv->gpio_chip);
|
||||
|
Loading…
Reference in New Issue
Block a user