Browse Source

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>
Srinivas Kandagatla 11 years ago
parent
commit
984203ceff
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c

+ 0 - 1
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]);
 			udelay(data->delays[1]);
 			gpio_set_value(reset_gpio, active_low ? 1 : 0);
 			gpio_set_value(reset_gpio, active_low ? 1 : 0);
 			udelay(data->delays[2]);
 			udelay(data->delays[2]);
-			gpio_free(reset_gpio);
 		}
 		}
 	}
 	}
 #endif
 #endif