lkml.org 
[lkml]   [2013]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH RFC 2/9] net: stmmac: mdio: remove reset gpio free
    Date
    From: Srinivas Kandagatla <srinivas.kandagatla@st.com>

    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>
    ---
    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 fe7bc99..aab12d2 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
    --
    1.7.6.5


    \
     
     \ /
      Last update: 2013-11-18 12:41    [W:3.183 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site