From: Rhyland Klein Date: Thu, 18 Jun 2015 21:28:21 +0000 (-0400) Subject: clk: tegra: pll: Update warning message X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=204c85d124bd51c0b1c70f1d6b0d853389179d38;p=linux-beck.git clk: tegra: pll: Update warning message Swap out the generic WARN_ON with a WARN which gives more information about what is happening. Reviewed-by: Benson Leung Signed-off-by: Rhyland Klein Signed-off-by: Thierry Reding --- diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk/tegra/clk-pll.c index 6c29ad7e15e7..79f4dc230dee 100644 --- a/drivers/clk/tegra/clk-pll.c +++ b/drivers/clk/tegra/clk-pll.c @@ -692,7 +692,8 @@ static unsigned long clk_pll_recalc_rate(struct clk_hw *hw, pdiv = _hw_to_p_div(hw, cfg.p); if (pdiv < 0) { - WARN_ON(1); + WARN(1, "Clock %s has invalid pdiv value : 0x%x\n", + __clk_get_name(hw->clk), cfg.p); pdiv = 1; }