mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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: Paulius Zaleckas <paulius.zaleckas@teltonika.lt> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4906f9985e
commit
664f93b48a
1 changed files with 2 additions and 0 deletions
|
@ -125,6 +125,8 @@ static int __devinit mdio_gpio_bus_init(struct device *dev,
|
|||
if (gpio_request(bitbang->mdio, "mdio"))
|
||||
goto out_free_mdc;
|
||||
|
||||
gpio_direction_output(bitbang->mdc, 0);
|
||||
|
||||
dev_set_drvdata(dev, new_bus);
|
||||
|
||||
ret = mdiobus_register(new_bus);
|
||||
|
|
Loading…
Reference in a new issue