Browse Source

Merge branch 'topic/hda-probe-defer' into for-next

Fix a build error when CONFIG_SND_HDA_PATCH_LOADER isn't set.
Takashi Iwai 13 years ago
parent
commit
7b03d1d9c0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      sound/pci/hda/hda_intel.c

+ 2 - 0
sound/pci/hda/hda_intel.c

@@ -3159,6 +3159,7 @@ static void power_down_all_codecs(struct azx *chip)
 #endif
 }
 
+#ifdef CONFIG_SND_HDA_PATCH_LOADER
 /* callback from request_firmware_nowait() */
 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);
 	pci_set_drvdata(pci, NULL);
 }
+#endif
 
 static int __devinit azx_probe(struct pci_dev *pci,
 			       const struct pci_device_id *pci_id)