Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97c6a3d1 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Fix forgotten ifdef CONFIG_SND_HDA_PATCH_LOADER



The firmware callback must be protected by that ifdef.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5cb543db
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -3159,6 +3159,7 @@ static void power_down_all_codecs(struct azx *chip)
#endif
#endif
}
}


#ifdef CONFIG_SND_HDA_PATCH_LOADER
/* callback from request_firmware_nowait() */
/* callback from request_firmware_nowait() */
static void azx_firmware_cb(const struct firmware *fw, void *context)
static void azx_firmware_cb(const struct firmware *fw, void *context)
{
{
@@ -3183,6 +3184,7 @@ static void azx_firmware_cb(const struct firmware *fw, void *context)
	snd_card_free(card);
	snd_card_free(card);
	pci_set_drvdata(pci, NULL);
	pci_set_drvdata(pci, NULL);
}
}
#endif


static int __devinit azx_probe(struct pci_dev *pci,
static int __devinit azx_probe(struct pci_dev *pci,
			       const struct pci_device_id *pci_id)
			       const struct pci_device_id *pci_id)