Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 984203ce authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by David S. Miller
Browse files

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: default avatarSrinivas Kandagatla <srinivas.kandagatla@st.com>
Acked-by: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9cbadf09
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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