diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2014-04-01 09:22:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-10-28 11:33:48 -0400 |
commit | bc47150ab93988714d1fab7bc82fe5f505a107ad (patch) | |
tree | cc775449ea1ba1e2cb3b74f25493bb8e621bd342 /drivers/media/i2c | |
parent | f85698cd296f08218a7750f321e94607da128600 (diff) |
[media] smiapp-pll: Correct clock debug prints
The PLL flags were not used correctly.
Cc: stable@vger.kernel.org
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/smiapp-pll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/i2c/smiapp-pll.c b/drivers/media/i2c/smiapp-pll.c index 2335529b195c..ab5d9a3adebf 100644 --- a/drivers/media/i2c/smiapp-pll.c +++ b/drivers/media/i2c/smiapp-pll.c | |||
@@ -67,7 +67,7 @@ static void print_pll(struct device *dev, struct smiapp_pll *pll) | |||
67 | { | 67 | { |
68 | dev_dbg(dev, "pre_pll_clk_div\t%d\n", pll->pre_pll_clk_div); | 68 | dev_dbg(dev, "pre_pll_clk_div\t%d\n", pll->pre_pll_clk_div); |
69 | dev_dbg(dev, "pll_multiplier \t%d\n", pll->pll_multiplier); | 69 | dev_dbg(dev, "pll_multiplier \t%d\n", pll->pll_multiplier); |
70 | if (pll->flags != SMIAPP_PLL_FLAG_NO_OP_CLOCKS) { | 70 | if (!(pll->flags & SMIAPP_PLL_FLAG_NO_OP_CLOCKS)) { |
71 | dev_dbg(dev, "op_sys_clk_div \t%d\n", pll->op_sys_clk_div); | 71 | dev_dbg(dev, "op_sys_clk_div \t%d\n", pll->op_sys_clk_div); |
72 | dev_dbg(dev, "op_pix_clk_div \t%d\n", pll->op_pix_clk_div); | 72 | dev_dbg(dev, "op_pix_clk_div \t%d\n", pll->op_pix_clk_div); |
73 | } | 73 | } |
@@ -77,7 +77,7 @@ static void print_pll(struct device *dev, struct smiapp_pll *pll) | |||
77 | dev_dbg(dev, "ext_clk_freq_hz \t%d\n", pll->ext_clk_freq_hz); | 77 | dev_dbg(dev, "ext_clk_freq_hz \t%d\n", pll->ext_clk_freq_hz); |
78 | dev_dbg(dev, "pll_ip_clk_freq_hz \t%d\n", pll->pll_ip_clk_freq_hz); | 78 | dev_dbg(dev, "pll_ip_clk_freq_hz \t%d\n", pll->pll_ip_clk_freq_hz); |
79 | dev_dbg(dev, "pll_op_clk_freq_hz \t%d\n", pll->pll_op_clk_freq_hz); | 79 | dev_dbg(dev, "pll_op_clk_freq_hz \t%d\n", pll->pll_op_clk_freq_hz); |
80 | if (pll->flags & SMIAPP_PLL_FLAG_NO_OP_CLOCKS) { | 80 | if (!(pll->flags & SMIAPP_PLL_FLAG_NO_OP_CLOCKS)) { |
81 | dev_dbg(dev, "op_sys_clk_freq_hz \t%d\n", | 81 | dev_dbg(dev, "op_sys_clk_freq_hz \t%d\n", |
82 | pll->op_sys_clk_freq_hz); | 82 | pll->op_sys_clk_freq_hz); |
83 | dev_dbg(dev, "op_pix_clk_freq_hz \t%d\n", | 83 | dev_dbg(dev, "op_pix_clk_freq_hz \t%d\n", |