mirror of
https://github.com/ipxe/ipxe
synced 2026-01-01 17:34:42 +03:00
[pci] Update drivers to use pci_ioremap()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -195,7 +195,7 @@ static int skeleton_probe ( struct pci_device *pci ) {
|
||||
adjust_pci_device ( pci );
|
||||
|
||||
/* Map registers */
|
||||
skel->regs = ioremap ( pci->membase, SKELETON_BAR_SIZE );
|
||||
skel->regs = pci_ioremap ( pci, pci->membase, SKELETON_BAR_SIZE );
|
||||
if ( ! skel->regs ) {
|
||||
rc = -ENODEV;
|
||||
goto err_ioremap;
|
||||
|
||||
Reference in New Issue
Block a user