]> git.ipfire.org Git - people/ms/linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Feb 2009 17:50:28 +0000 (09:50 -0800)
commitdf19ea14c317dafc61cde95f918a5783ac56a593
tree1f1a1233f4f40f2eb3e8ad4c9138d16014ab3251
parentc784f619619bec525d7791f8b527cc363d708c16
e1000: Fix PCI enable to honor the need_ioport flag

commit 4d7155b932b8129c72e2f2714890e20b2a05e0b7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/e1000/e1000_main.c