9
0
Fork 0

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>
This commit is contained in:
Eric Bénard 2013-09-10 19:13:33 +02:00 committed by Sascha Hauer
parent 8bbd9f59b1
commit f962ae4cd3
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}