Skip to contentSkip to conversation

hda_intel: Fix multiple device support by incrementing device count

PATCH In review Andrew Paprocki 2 participants 2 messages Jan 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hda_intel: Fix multiple device support by incrementing device count

Fixes multiple device support by incrementing the static device counter at the end of the azx_probe() call. Without this, subsequent probes would always use the index specified for the first card.

pci/hda/hda_intel.c +1 -0
diff -r acdc98363786 -r bde9dbdbd2ba pci/hda/hda_intel.c
@@ -1933,6 +1933,7 @@ static int __devinit azx_probe(struct pc
 	chip->running = 1;
 	power_down_all_codecs(chip);
 
+	dev++;
 	return err;
 }
#1 lore raw

At Sat, 12 Jan 2008 19:05:29 -0400,

Quoted 6 lines · Andrew Paprocki

Fixes multiple device support by incrementing the static device counter at the end of the azx_probe() call. Without this, subsequent probes would always use the index specified for the first card.

Oops, a stupid bug. Applied to HG tree.
Thanks!

Takashi