diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2014-01-16 14:51:58 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-17 03:23:43 +0400 |
commit | 984203ceff27e9d6d94fbae4b043fc9afb658121 (patch) | |
tree | 570121a60df979dde2f91eefd3909ec046f1f5a0 /drivers/net/ethernet/stmicro | |
parent | 9cbadf094d9d479413dc8cfa77dff9e732184337 (diff) | |
download | linux-984203ceff27e9d6d94fbae4b043fc9afb658121.tar.xz |
net: stmmac: mdio: remove reset gpio free
This patch removes gpio_free for reset line of the phy, driver stores
the gpio number in its private data-structure to use in future. As the
driver uses this pin in future this pin should not be freed.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c index fe7bc9903867..aab12d248fb4 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c @@ -166,7 +166,6 @@ static int stmmac_mdio_reset(struct mii_bus *bus) udelay(data->delays[1]); gpio_set_value(reset_gpio, active_low ? 1 : 0); udelay(data->delays[2]); - gpio_free(reset_gpio); } } #endif |