mirror of https://gitee.com/openkylin/linux.git
ALSA: als300: Fix missing chip initialization
The recent code refactoring missed the initialization of the chip
variable as its allocation was moved to card->private_data.
Let's fix it.
Fixes: 21a9314cf9
("ALSA: als300: Allocate resources with device-managed APIs")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/s5hh7goocid.wl-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
35fe790115
commit
f263a2c2d6
|
@ -702,6 +702,7 @@ static int snd_als300_probe(struct pci_dev *pci,
|
|||
sizeof(*chip), &card);
|
||||
if (err < 0)
|
||||
return err;
|
||||
chip = card->private_data;
|
||||
|
||||
chip_type = pci_id->driver_data;
|
||||
|
||||
|
|
Loading…
Reference in New Issue