sunxi: driver refresh for 3.13
[openwrt.git] / target / linux / sunxi / patches-3.13 / 151-2-stmmac-fixup-2.patch
1 From 984203ceff27e9d6d94fbae4b043fc9afb658121 Mon Sep 17 00:00:00 2001
2 From: Srinivas Kandagatla <srinivas.kandagatla@st.com>
3 Date: Thu, 16 Jan 2014 10:51:58 +0000
4 Subject: [PATCH] net: stmmac: mdio: remove reset gpio free
5
6 This patch removes gpio_free for reset line of the phy, driver stores
7 the gpio number in its private data-structure to use in future. As the
8 driver uses this pin in future this pin should not be freed.
9
10 Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
11 Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
12 Signed-off-by: David S. Miller <davem@davemloft.net>
13 ---
14  drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 1 -
15  1 file changed, 1 deletion(-)
16
17 diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
18 index fe7bc99..aab12d2 100644
19 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
20 +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
21 @@ -166,7 +166,6 @@ static int stmmac_mdio_reset(struct mii_bus *bus)
22                         udelay(data->delays[1]);
23                         gpio_set_value(reset_gpio, active_low ? 1 : 0);
24                         udelay(data->delays[2]);
25 -                       gpio_free(reset_gpio);
26                 }
27         }
28  #endif
29 -- 
30 1.8.5.5
31