mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
[PATCH] orinoco_nortel: Fix incorrect PCI resource use
orinoco_nortel was broken during conversion to iomem API. Wrong PCI BAR is used for chipset registers. Reported by Tomas Novak <tap@post.cz> Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
parent
c162eeaa21
commit
c8cb00f6ac
@ -165,7 +165,7 @@ static int nortel_pci_init_one(struct pci_dev *pdev,
|
||||
goto fail_resources;
|
||||
}
|
||||
|
||||
iomem = pci_iomap(pdev, 3, 0);
|
||||
iomem = pci_iomap(pdev, 2, 0);
|
||||
if (!iomem) {
|
||||
err = -ENOMEM;
|
||||
goto fail_map_io;
|
||||
|
Loading…
Reference in New Issue
Block a user