[pci] Update drivers to use pci_ioremap()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -2278,7 +2278,7 @@ static int sky2_probe(struct pci_device *pdev)
|
||||
|
||||
hw->pdev = pdev;
|
||||
|
||||
hw->regs = (unsigned long)ioremap(pci_bar_start(pdev, PCI_BASE_ADDRESS_0), 0x4000);
|
||||
hw->regs = (unsigned long)pci_ioremap(pdev, pci_bar_start(pdev, PCI_BASE_ADDRESS_0), 0x4000);
|
||||
if (!hw->regs) {
|
||||
DBG(PFX "cannot map device registers\n");
|
||||
goto err_out_free_hw;
|
||||
|
||||
Reference in New Issue
Block a user