patch-2.4.3 linux/drivers/sound/cs46xx.c
Next file: linux/drivers/sound/emu10k1/main.c
Previous file: linux/drivers/sound/awe_wave.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Tue Mar 20 12:04:58 2001
- Orig file:
v2.4.2/linux/drivers/sound/cs46xx.c
- Orig date:
Wed Feb 21 18:20:34 2001
diff -u --recursive --new-file v2.4.2/linux/drivers/sound/cs46xx.c linux/drivers/sound/cs46xx.c
@@ -4020,8 +4020,8 @@
}
memset(card, 0, sizeof(*card));
- card->ba0_addr = pci_dev->resource[0].start&PCI_BASE_ADDRESS_MEM_MASK;
- card->ba1_addr = pci_dev->resource[1].start&PCI_BASE_ADDRESS_MEM_MASK;
+ card->ba0_addr = pci_resource_start(pci_dev, 0);
+ card->ba1_addr = pci_resource_start(pci_dev, 1);
card->pci_dev = pci_dev;
card->irq = pci_dev->irq;
card->magic = CS_CARD_MAGIC;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)