mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
net: sun4i: remove empty MDIO bus reset function
sun4i_mdio_reset() does nothing useful and is optional for the MDIO bus code, so let's just remove it. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
33c0431ea6
commit
fe1ee45068
1 changed files with 0 additions and 6 deletions
|
@ -90,11 +90,6 @@ static int sun4i_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sun4i_mdio_reset(struct mii_bus *bus)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int sun4i_mdio_probe(struct platform_device *pdev)
|
static int sun4i_mdio_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct device_node *np = pdev->dev.of_node;
|
struct device_node *np = pdev->dev.of_node;
|
||||||
|
@ -110,7 +105,6 @@ static int sun4i_mdio_probe(struct platform_device *pdev)
|
||||||
bus->name = "sun4i_mii_bus";
|
bus->name = "sun4i_mii_bus";
|
||||||
bus->read = &sun4i_mdio_read;
|
bus->read = &sun4i_mdio_read;
|
||||||
bus->write = &sun4i_mdio_write;
|
bus->write = &sun4i_mdio_write;
|
||||||
bus->reset = &sun4i_mdio_reset;
|
|
||||||
snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(&pdev->dev));
|
snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(&pdev->dev));
|
||||||
bus->parent = &pdev->dev;
|
bus->parent = &pdev->dev;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue