Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d7155b9 authored by Karsten Keil's avatar Karsten Keil Committed by David S. Miller
Browse files

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: default avatarKarsten Keil <kkeil@suse.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 714c48f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;