|
@@ -235,7 +235,7 @@ struct emu10k1x {
|
|
|
struct resource *res_port;
|
|
|
int irq;
|
|
|
|
|
|
- unsigned int revision; /* chip revision */
|
|
|
+ unsigned char revision; /* chip revision */
|
|
|
unsigned int serial; /* serial number */
|
|
|
unsigned short model; /* subsystem id */
|
|
|
|
|
@@ -943,7 +943,7 @@ static int __devinit snd_emu10k1x_create(struct snd_card *card,
|
|
|
|
|
|
pci_set_master(pci);
|
|
|
/* read revision & serial */
|
|
|
- pci_read_config_byte(pci, PCI_REVISION_ID, (char *)&chip->revision);
|
|
|
+ pci_read_config_byte(pci, PCI_REVISION_ID, &chip->revision);
|
|
|
pci_read_config_dword(pci, PCI_SUBSYSTEM_VENDOR_ID, &chip->serial);
|
|
|
pci_read_config_word(pci, PCI_SUBSYSTEM_ID, &chip->model);
|
|
|
snd_printk(KERN_INFO "Model %04x Rev %08x Serial %08x\n", chip->model,
|