[pci] Update drivers to use pci_ioremap()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1989,7 +1989,7 @@ static int ehci_probe ( struct pci_device *pci ) {
|
||||
/* Map registers */
|
||||
bar_start = pci_bar_start ( pci, EHCI_BAR );
|
||||
bar_size = pci_bar_size ( pci, EHCI_BAR );
|
||||
ehci->regs = ioremap ( bar_start, bar_size );
|
||||
ehci->regs = pci_ioremap ( pci, bar_start, bar_size );
|
||||
if ( ! ehci->regs ) {
|
||||
rc = -ENODEV;
|
||||
goto err_ioremap;
|
||||
|
||||
@@ -3261,7 +3261,7 @@ static int xhci_probe ( struct pci_device *pci ) {
|
||||
/* Map registers */
|
||||
bar_start = pci_bar_start ( pci, XHCI_BAR );
|
||||
bar_size = pci_bar_size ( pci, XHCI_BAR );
|
||||
xhci->regs = ioremap ( bar_start, bar_size );
|
||||
xhci->regs = pci_ioremap ( pci, bar_start, bar_size );
|
||||
if ( ! xhci->regs ) {
|
||||
rc = -ENODEV;
|
||||
goto err_ioremap;
|
||||
|
||||
Reference in New Issue
Block a user