From: Jurij Smakov Date: Mon, 4 Dec 2006 03:36:32 +0000 (-0800) Subject: [PATCH] SUNHME: Fix for sunhme failures on x86 X-Git-Tag: v2.6.19.1~23 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c856e3d57e3fdb74237ddfb8356e1cabee94c155;p=karo-tx-linux.git [PATCH] 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 Signed-off-by: David S. Miller Signed-off-by: Chris Wright --- diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c index 9d7cd130c19d..9f1c9bcccfbc 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, #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)