Commit 664f93b4 authored by Paulius Zaleckas's avatar Paulius Zaleckas Committed by David S. Miller

mdio-gpio: Add mdc pin direction initialization

mdc pin should always be output. Initialize it as output,
so each board code does not need to do this.
Signed-off-by: default avatarPaulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4906f998
...@@ -125,6 +125,8 @@ static int __devinit mdio_gpio_bus_init(struct device *dev, ...@@ -125,6 +125,8 @@ static int __devinit mdio_gpio_bus_init(struct device *dev,
if (gpio_request(bitbang->mdio, "mdio")) if (gpio_request(bitbang->mdio, "mdio"))
goto out_free_mdc; goto out_free_mdc;
gpio_direction_output(bitbang->mdc, 0);
dev_set_drvdata(dev, new_bus); dev_set_drvdata(dev, new_bus);
ret = mdiobus_register(new_bus); ret = mdiobus_register(new_bus);
......
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