lkml.org 
[lkml]   [2012]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 6/7] ARM: LPC32xx: clock.c: warning fix
    Date
    This patch removes the debug warning on local_clk_disable() as done in Kevin
    Wells' driver update

    Signed-off-by: Roland Stigge <stigge@antcom.de>
    Acked-by: Wolfram Sang <w.sang@pengutronix.de>
    Tested-by: Wolfram Sang <w.sang@pengutronix.de>

    diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c
    index d527288..0606a63 100644
    --- a/arch/arm/mach-lpc32xx/clock.c
    +++ b/arch/arm/mach-lpc32xx/clock.c
    @@ -904,8 +904,6 @@ static inline void clk_unlock(void)

    static void local_clk_disable(struct clk *clk)
    {
    - WARN_ON(clk->usecount == 0);
    -
    /* Don't attempt to disable clock if it has no users */
    if (clk->usecount > 0) {
    clk->usecount--;

    \
     
     \ /
      Last update: 2012-02-02 20:25    [W:0.018 / U:29.724 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site