aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJurij Smakov <jurij@wooyd.org>2006-12-03 22:33:02 -0500
committerDavid S. Miller <davem@davemloft.net>2006-12-03 22:33:02 -0500
commitef9467f8f0803881d6b20ad6f0f770fc39bcc2c2 (patch)
tree9b28ff138e9a737ddd40df2ab77ae5df06d48712
parent83ac58ba0a26228c0b16baa2c4b821de9c4ad5ca (diff)
[SUNHME]: Fix for sunhme failures on x86
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>
-rw-r--r--drivers/net/sunhme.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c
index ec432ea879fb..df40e34c7766 100644
--- a/drivers/net/sunhme.c
+++ b/drivers/net/sunhme.c
@@ -3012,6 +3012,11 @@ static int __devinit happy_meal_pci_probe(struct pci_dev *pdev,
3012#endif 3012#endif
3013 3013
3014 err = -ENODEV; 3014 err = -ENODEV;
3015
3016 if (pci_enable_device(pdev))
3017 goto err_out;
3018 pci_set_master(pdev);
3019
3015 if (!strcmp(prom_name, "SUNW,qfe") || !strcmp(prom_name, "qfe")) { 3020 if (!strcmp(prom_name, "SUNW,qfe") || !strcmp(prom_name, "qfe")) {
3016 qp = quattro_pci_find(pdev); 3021 qp = quattro_pci_find(pdev);
3017 if (qp == NULL) 3022 if (qp == NULL)