From f962ae4cd3b9dc89fd3b94935a3242ffb322b308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Tue, 10 Sep 2013 19:13:33 +0200 Subject: [PATCH] video/stm: don't fail when the pixel clock is properly set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the check is wrong as when the clock rate is correctly set the function will return 0. Signed-off-by: Eric BĂ©nard Signed-off-by: Sascha Hauer --- drivers/video/stm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/stm.c b/drivers/video/stm.c index 0875c9b0f..260312918 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; }