]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
e1000: Fix PCI enable to honor the need_ioport flag
authorKarsten Keil <kkeil@suse.de>
Tue, 3 Feb 2009 23:18:01 +0000 (15:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Feb 2009 23:18:01 +0000 (15:18 -0800)
commit4d7155b932b8129c72e2f2714890e20b2a05e0b7
tree7d94cfea5239cc6b11673e326f7a1851720921ed
parent714c48f1bb553a2e5dd8d6ff66accc7c51218ac9
e1000: Fix PCI enable to honor the need_ioport flag

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 <kkeil@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000/e1000_main.c