mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
Use correct helper function
This commit is contained in:
parent
39e55a1499
commit
e1456fb03b
@ -175,7 +175,7 @@ static int mqnic_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent
|
||||
goto fail_regions;
|
||||
}
|
||||
|
||||
mqnic->hw_regs_size = pci_resource_end(pdev, 0) - pci_resource_start(pdev, 0) + 1;
|
||||
mqnic->hw_regs_size = pci_resource_len(pdev, 0);
|
||||
mqnic->hw_regs_phys = pci_resource_start(pdev, 0);
|
||||
|
||||
// Map BAR
|
||||
|
Loading…
x
Reference in New Issue
Block a user