]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/au88x0/au88x0.c
[ALSA] hda-codec - Fix ALC662 auto mode
[linux-2.6-omap-h63xx.git] / sound / pci / au88x0 / au88x0.c
index 238154bb7a254695894e5bd1bea6e38cdba5d92c..5ec1b6fcd548e2623fd1b023dfe570cfbacd94e0 100644 (file)
@@ -341,11 +341,7 @@ snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
                snd_card_free(card);
                return err;
        }
-       if ((err = pci_read_config_byte(pci, PCI_REVISION_ID,
-                                 &(chip->rev))) < 0) {
-               snd_card_free(card);
-               return err;
-       }
+       chip->rev = pci->revision;
 #ifdef CHIP_AU8830
        if ((chip->rev) != 0xfe && (chip->rev) != 0xfa) {
                printk(KERN_ALERT