Commit ff3f3a30 authored by Arun Ramadoss's avatar Arun Ramadoss Committed by David S. Miller

net: dsa: microchip: remove the ksz8/ksz9477_switch_register

This patch delete the ksz8_switch_register and ksz9477_switch_register
since both are calling the ksz_switch_register function. Instead the
ksz_switch_register is called from the probe function.
Signed-off-by: default avatarArun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6ec23aaa
...@@ -1475,12 +1475,6 @@ void ksz8_switch_exit(struct ksz_device *dev) ...@@ -1475,12 +1475,6 @@ void ksz8_switch_exit(struct ksz_device *dev)
ksz8_reset_switch(dev); ksz8_reset_switch(dev);
} }
int ksz8_switch_register(struct ksz_device *dev)
{
return ksz_switch_register(dev);
}
EXPORT_SYMBOL(ksz8_switch_register);
MODULE_AUTHOR("Tristram Ha <Tristram.Ha@microchip.com>"); MODULE_AUTHOR("Tristram Ha <Tristram.Ha@microchip.com>");
MODULE_DESCRIPTION("Microchip KSZ8795 Series Switch DSA Driver"); MODULE_DESCRIPTION("Microchip KSZ8795 Series Switch DSA Driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -82,7 +82,7 @@ static int ksz8795_spi_probe(struct spi_device *spi) ...@@ -82,7 +82,7 @@ static int ksz8795_spi_probe(struct spi_device *spi)
if (ret) if (ret)
return ret; return ret;
ret = ksz8_switch_register(dev); ret = ksz_switch_register(dev);
/* Main DSA driver may not be started yet. */ /* Main DSA driver may not be started yet. */
if (ret) if (ret)
......
...@@ -174,7 +174,7 @@ static int ksz8863_smi_probe(struct mdio_device *mdiodev) ...@@ -174,7 +174,7 @@ static int ksz8863_smi_probe(struct mdio_device *mdiodev)
if (mdiodev->dev.platform_data) if (mdiodev->dev.platform_data)
dev->pdata = mdiodev->dev.platform_data; dev->pdata = mdiodev->dev.platform_data;
ret = ksz8_switch_register(dev); ret = ksz_switch_register(dev);
/* Main DSA driver may not be started yet. */ /* Main DSA driver may not be started yet. */
if (ret) if (ret)
......
...@@ -1343,12 +1343,6 @@ void ksz9477_switch_exit(struct ksz_device *dev) ...@@ -1343,12 +1343,6 @@ void ksz9477_switch_exit(struct ksz_device *dev)
ksz9477_reset_switch(dev); ksz9477_reset_switch(dev);
} }
int ksz9477_switch_register(struct ksz_device *dev)
{
return ksz_switch_register(dev);
}
EXPORT_SYMBOL(ksz9477_switch_register);
MODULE_AUTHOR("Woojung Huh <Woojung.Huh@microchip.com>"); MODULE_AUTHOR("Woojung Huh <Woojung.Huh@microchip.com>");
MODULE_DESCRIPTION("Microchip KSZ9477 Series Switch DSA Driver"); MODULE_DESCRIPTION("Microchip KSZ9477 Series Switch DSA Driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -41,7 +41,7 @@ static int ksz9477_i2c_probe(struct i2c_client *i2c, ...@@ -41,7 +41,7 @@ static int ksz9477_i2c_probe(struct i2c_client *i2c,
if (i2c->dev.platform_data) if (i2c->dev.platform_data)
dev->pdata = i2c->dev.platform_data; dev->pdata = i2c->dev.platform_data;
ret = ksz9477_switch_register(dev); ret = ksz_switch_register(dev);
/* Main DSA driver may not be started yet. */ /* Main DSA driver may not be started yet. */
if (ret) if (ret)
......
...@@ -54,7 +54,7 @@ static int ksz9477_spi_probe(struct spi_device *spi) ...@@ -54,7 +54,7 @@ static int ksz9477_spi_probe(struct spi_device *spi)
if (ret) if (ret)
return ret; return ret;
ret = ksz9477_switch_register(dev); ret = ksz_switch_register(dev);
/* Main DSA driver may not be started yet. */ /* Main DSA driver may not be started yet. */
if (ret) if (ret)
......
...@@ -220,9 +220,6 @@ struct ksz_device *ksz_switch_alloc(struct device *base, void *priv); ...@@ -220,9 +220,6 @@ struct ksz_device *ksz_switch_alloc(struct device *base, void *priv);
int ksz_switch_register(struct ksz_device *dev); int ksz_switch_register(struct ksz_device *dev);
void ksz_switch_remove(struct ksz_device *dev); void ksz_switch_remove(struct ksz_device *dev);
int ksz8_switch_register(struct ksz_device *dev);
int ksz9477_switch_register(struct ksz_device *dev);
void ksz_init_mib_timer(struct ksz_device *dev); void ksz_init_mib_timer(struct ksz_device *dev);
void ksz_r_mib_stats64(struct ksz_device *dev, int port); void ksz_r_mib_stats64(struct ksz_device *dev, int port);
void ksz_port_stp_state_set(struct dsa_switch *ds, int port, u8 state); void ksz_port_stp_state_set(struct dsa_switch *ds, int port, u8 state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment