Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279019
b: refs/heads/master
c: bc12d28
h: refs/heads/master
i:
  279017: c0473dd
  279015: e8ebd89
v: v3
  • Loading branch information
Bjorn Helgaas authored and David S. Miller committed Dec 19, 2011
1 parent 14b5367 commit 7c37a1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0a955c3a6f44927b81ae3bc91b0448eb104d8316
refs/heads/master: bc12d289e10afe0205738af30883853ed0ab6883
9 changes: 2 additions & 7 deletions trunk/drivers/net/ethernet/sun/sunhme.c
Original file line number Diff line number Diff line change
Expand Up @@ -2850,7 +2850,7 @@ static int __devinit happy_meal_sbus_probe_one(struct platform_device *op, int i
static int is_quattro_p(struct pci_dev *pdev)
{
struct pci_dev *busdev = pdev->bus->self;
struct list_head *tmp;
struct pci_dev *this_pdev;
int n_hmes;

if (busdev == NULL ||
Expand All @@ -2859,15 +2859,10 @@ static int is_quattro_p(struct pci_dev *pdev)
return 0;

n_hmes = 0;
tmp = pdev->bus->devices.next;
while (tmp != &pdev->bus->devices) {
struct pci_dev *this_pdev = pci_dev_b(tmp);

list_for_each_entry(this_pdev, &pdev->bus->devices, bus_list) {
if (this_pdev->vendor == PCI_VENDOR_ID_SUN &&
this_pdev->device == PCI_DEVICE_ID_SUN_HAPPYMEAL)
n_hmes++;

tmp = tmp->next;
}

if (n_hmes != 4)
Expand Down

0 comments on commit 7c37a1b

Please sign in to comment.