Skip to content

Commit

Permalink
[SUNHME]: Fix for sunhme failures on x86
Browse files Browse the repository at this point in the history
The following patch fixes the failure of sunhme drivers on x86 hosts
due to missing pci_enable_device() and pci_set_master() calls, lost 
during code refactoring. It has been filed as bugzilla bug #7502 [0] 
and Debian bug #397460 [1].

[0] http://bugzilla.kernel.org/show_bug.cgi?id=7502
[1] http://bugs.debian.org/397460

Signed-off-by: Jurij Smakov <jurij@wooyd.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jurij Smakov authored and David S. Miller committed Dec 4, 2006
1 parent 83ac58b commit ef9467f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/sunhme.c
Original file line number Diff line number Diff line change
Expand Up @@ -3012,6 +3012,11 @@ static int __devinit happy_meal_pci_probe(struct pci_dev *pdev,
#endif

err = -ENODEV;

if (pci_enable_device(pdev))
goto err_out;
pci_set_master(pdev);

if (!strcmp(prom_name, "SUNW,qfe") || !strcmp(prom_name, "qfe")) {
qp = quattro_pci_find(pdev);
if (qp == NULL)
Expand Down

0 comments on commit ef9467f

Please sign in to comment.