diff options
Diffstat (limited to 'drivers/net/sunhme.c')
| -rw-r--r-- | drivers/net/sunhme.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c index 7a72a3112f0a..cc4013be5e18 100644 --- a/drivers/net/sunhme.c +++ b/drivers/net/sunhme.c | |||
| @@ -2629,6 +2629,14 @@ static int __devinit happy_meal_sbus_probe_one(struct of_device *op, int is_qfe) | |||
| 2629 | int i, qfe_slot = -1; | 2629 | int i, qfe_slot = -1; |
| 2630 | int err = -ENODEV; | 2630 | int err = -ENODEV; |
| 2631 | 2631 | ||
| 2632 | sbus_dp = to_of_device(op->dev.parent)->node; | ||
| 2633 | if (is_qfe) | ||
| 2634 | sbus_dp = to_of_device(op->dev.parent->parent)->node; | ||
| 2635 | |||
| 2636 | /* We can match PCI devices too, do not accept those here. */ | ||
| 2637 | if (strcmp(sbus_dp->name, "sbus")) | ||
| 2638 | return err; | ||
| 2639 | |||
| 2632 | if (is_qfe) { | 2640 | if (is_qfe) { |
| 2633 | qp = quattro_sbus_find(op); | 2641 | qp = quattro_sbus_find(op); |
| 2634 | if (qp == NULL) | 2642 | if (qp == NULL) |
| @@ -2734,10 +2742,6 @@ static int __devinit happy_meal_sbus_probe_one(struct of_device *op, int is_qfe) | |||
| 2734 | if (qp != NULL) | 2742 | if (qp != NULL) |
| 2735 | hp->happy_flags |= HFLAG_QUATTRO; | 2743 | hp->happy_flags |= HFLAG_QUATTRO; |
| 2736 | 2744 | ||
| 2737 | sbus_dp = to_of_device(op->dev.parent)->node; | ||
| 2738 | if (is_qfe) | ||
| 2739 | sbus_dp = to_of_device(op->dev.parent->parent)->node; | ||
| 2740 | |||
| 2741 | /* Get the supported DVMA burst sizes from our Happy SBUS. */ | 2745 | /* Get the supported DVMA burst sizes from our Happy SBUS. */ |
| 2742 | hp->happy_bursts = of_getintprop_default(sbus_dp, | 2746 | hp->happy_bursts = of_getintprop_default(sbus_dp, |
| 2743 | "burst-sizes", 0x00); | 2747 | "burst-sizes", 0x00); |
