summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sun/sunhme.c
diff options
context:
space:
mode:
authoroftedal <oftedal@gmail.com>2011-11-07 11:47:53 +0000
committerDavid S. Miller <davem@davemloft.net>2011-11-08 14:01:42 -0500
commit59caa5612ce916c4902c753aa61429eb76ac2b21 (patch)
treef3e0b10ba5db506127bc01f6504bf707e16e8849 /drivers/net/ethernet/sun/sunhme.c
parente50e705ca71db82a78a3e13fb7abf6b2171ac9c7 (diff)
downloadop-kernel-dev-59caa5612ce916c4902c753aa61429eb76ac2b21.zip
op-kernel-dev-59caa5612ce916c4902c753aa61429eb76ac2b21.tar.gz
sunhme: Allow usage on SBI based SBus systems
To prevent the SBus driver for Sun Happy Meal cards from being loaded for PCI cards utilizing the same chipset, a filter was added to the probe function in commit 0b492fce3d72d982a7981905f85484a1e1ba7fde. The filter was implemented by checking the name of the parent node in the OF tree. This patch extends this filter, so that the driver will load on SBus systems that are based upon SBI SBus Bridges. Signed-off-by: Kjetil Oftedal <oftedal@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun/sunhme.c')
-rw-r--r--drivers/net/ethernet/sun/sunhme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c
index c517dac..cf14ab9 100644
--- a/drivers/net/ethernet/sun/sunhme.c
+++ b/drivers/net/ethernet/sun/sunhme.c
@@ -2637,7 +2637,7 @@ static int __devinit happy_meal_sbus_probe_one(struct platform_device *op, int i
sbus_dp = op->dev.parent->of_node;
/* We can match PCI devices too, do not accept those here. */
- if (strcmp(sbus_dp->name, "sbus"))
+ if (strcmp(sbus_dp->name, "sbus") && strcmp(sbus_dp->name, "sbi"))
return err;
if (is_qfe) {
OpenPOWER on IntegriCloud