diff options
author | Eric Bénard <eric@eukrea.com> | 2013-09-10 19:13:33 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-10 21:03:59 +0200 |
commit | f962ae4cd3b9dc89fd3b94935a3242ffb322b308 (patch) | |
tree | 0b1d0975491517acdf1d4032c5a5b97c9bf8eb6f /drivers/video/stm.c | |
parent | 8bbd9f59b14569f6aac71fdb595d6f08dfd98b85 (diff) | |
download | barebox-f962ae4cd3b9dc89fd3b94935a3242ffb322b308.tar.gz barebox-f962ae4cd3b9dc89fd3b94935a3242ffb322b308.tar.xz |
video/stm: don't fail when the pixel clock is properly set
the check is wrong as when the clock rate is correctly set
the function will return 0.
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/video/stm.c')
-rw-r--r-- | drivers/video/stm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/stm.c b/drivers/video/stm.c index 0875c9b0f7..2603129186 100644 --- a/drivers/video/stm.c +++ b/drivers/video/stm.c @@ -331,7 +331,7 @@ static int stmfb_activate_var(struct fb_info *fb_info) /** @todo ensure HCLK is active at this point of time! */ size = clk_set_rate(fbi->clk, PICOS2KHZ(mode->pixclock) * 1000); - if (size == 0) { + if (size != 0) { dev_dbg(fbi->hw_dev, "Unable to set a valid pixel clock\n"); return -EINVAL; } |