diff options
author | Paulius Zaleckas <paulius.zaleckas@teltonika.lt> | 2009-02-08 18:46:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-10 20:11:10 -0500 |
commit | 664f93b48aefeb44b42127fe1da534808e8e9494 (patch) | |
tree | 8e65751566878573fcd567a60e016b7f9205c030 /drivers | |
parent | 4906f9985e310fc01f956256b0d58ac28b0dcb19 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/phy/mdio-gpio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c index a439ebeb431..af28ff7ae17 100644 --- a/drivers/net/phy/mdio-gpio.c +++ b/drivers/net/phy/mdio-gpio.c | |||
@@ -125,6 +125,8 @@ static int __devinit mdio_gpio_bus_init(struct device *dev, | |||
125 | if (gpio_request(bitbang->mdio, "mdio")) | 125 | if (gpio_request(bitbang->mdio, "mdio")) |
126 | goto out_free_mdc; | 126 | goto out_free_mdc; |
127 | 127 | ||
128 | gpio_direction_output(bitbang->mdc, 0); | ||
129 | |||
128 | dev_set_drvdata(dev, new_bus); | 130 | dev_set_drvdata(dev, new_bus); |
129 | 131 | ||
130 | ret = mdiobus_register(new_bus); | 132 | ret = mdiobus_register(new_bus); |