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:
parent
8bbd9f59b1
commit
f962ae4cd3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue