|
@@ -4356,8 +4356,7 @@ static struct dsa_switch_driver mv88e6xxx_switch_drv = {
|
|
.ops = &mv88e6xxx_switch_ops,
|
|
.ops = &mv88e6xxx_switch_ops,
|
|
};
|
|
};
|
|
|
|
|
|
-static int mv88e6xxx_register_switch(struct mv88e6xxx_chip *chip,
|
|
|
|
- struct device_node *np)
|
|
|
|
|
|
+static int mv88e6xxx_register_switch(struct mv88e6xxx_chip *chip)
|
|
{
|
|
{
|
|
struct device *dev = chip->dev;
|
|
struct device *dev = chip->dev;
|
|
struct dsa_switch *ds;
|
|
struct dsa_switch *ds;
|
|
@@ -4372,7 +4371,7 @@ static int mv88e6xxx_register_switch(struct mv88e6xxx_chip *chip,
|
|
|
|
|
|
dev_set_drvdata(dev, ds);
|
|
dev_set_drvdata(dev, ds);
|
|
|
|
|
|
- return dsa_register_switch(ds, np);
|
|
|
|
|
|
+ return dsa_register_switch(ds, dev);
|
|
}
|
|
}
|
|
|
|
|
|
static void mv88e6xxx_unregister_switch(struct mv88e6xxx_chip *chip)
|
|
static void mv88e6xxx_unregister_switch(struct mv88e6xxx_chip *chip)
|
|
@@ -4456,7 +4455,7 @@ static int mv88e6xxx_probe(struct mdio_device *mdiodev)
|
|
if (err)
|
|
if (err)
|
|
goto out_g2_irq;
|
|
goto out_g2_irq;
|
|
|
|
|
|
- err = mv88e6xxx_register_switch(chip, np);
|
|
|
|
|
|
+ err = mv88e6xxx_register_switch(chip);
|
|
if (err)
|
|
if (err)
|
|
goto out_mdio;
|
|
goto out_mdio;
|
|
|
|
|