Commit 35fe7901 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: cs4281: Fix missing chip initialization

The chip variable was forgotten to be initialized properly while
changing the object creation from the own malloc to
card->private_data.  This patch fixes it.

Fixes: 99041fea ("ALSA: cs4281: Allocate resources with device-managed APIs")
Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/s5him14ocjz.wl-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9b7843d1
...@@ -1288,7 +1288,7 @@ static int snd_cs4281_create(struct snd_card *card, ...@@ -1288,7 +1288,7 @@ static int snd_cs4281_create(struct snd_card *card,
struct pci_dev *pci, struct pci_dev *pci,
int dual_codec) int dual_codec)
{ {
struct cs4281 *chip; struct cs4281 *chip = card->private_data;
int err; int err;
err = pcim_enable_device(pci); err = pcim_enable_device(pci);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment