mirror of
https://github.com/ipxe/ipxe
synced 2026-01-07 04:31:39 +03:00
[pci] Update drivers to use pci_ioremap()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -280,7 +280,7 @@ static int ath5k_probe(struct pci_device *pdev)
|
||||
*/
|
||||
pci_write_config_byte(pdev, 0x41, 0);
|
||||
|
||||
mem = ioremap(pdev->membase, 0x10000);
|
||||
mem = pci_ioremap(pdev, pdev->membase, 0x10000);
|
||||
if (!mem) {
|
||||
DBG("ath5k: cannot remap PCI memory region\n");
|
||||
ret = -EIO;
|
||||
|
||||
@@ -138,7 +138,7 @@ static int ath_pci_probe(struct pci_device *pdev)
|
||||
if ((val & 0x0000ff00) != 0)
|
||||
pci_write_config_dword(pdev, 0x40, val & 0xffff00ff);
|
||||
|
||||
mem = ioremap(pdev->membase, 0x10000);
|
||||
mem = pci_ioremap(pdev, pdev->membase, 0x10000);
|
||||
if (!mem) {
|
||||
DBG("ath9K: PCI memory map error\n") ;
|
||||
ret = -EIO;
|
||||
|
||||
Reference in New Issue
Block a user