projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
714c48f
)
e1000: Fix PCI enable to honor the need_ioport flag
author
Karsten Keil
<
[email protected]
>
Tue, 3 Feb 2009 23:18:01 +0000
(15:18 -0800)
committer
David S. Miller
<
[email protected]
>
Tue, 3 Feb 2009 23:18:01 +0000
(15:18 -0800)
On machine were no IO ports are assigned the call
to pci_enable_device() will fail, even if need_ioport
is false, we need to use pci_enable_device_mem() here.
Signed-off-by: Karsten Keil <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/e1000/e1000_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/e1000/e1000_main.c
b/drivers/net/e1000/e1000_main.c
index c986978ce761e50765d59da51b4e615b8e8268bb..6bd63cc67b3ec37eec06275368b5685300cd9b79 100644
(file)
--- a/
drivers/net/e1000/e1000_main.c
+++ b/
drivers/net/e1000/e1000_main.c
@@
-940,7
+940,7
@@
static int __devinit e1000_probe(struct pci_dev *pdev,
err = pci_enable_device(pdev);
} else {
bars = pci_select_bars(pdev, IORESOURCE_MEM);
- err = pci_enable_device(pdev);
+ err = pci_enable_device
_mem
(pdev);
}
if (err)
return err;