summaryrefslogtreecommitdiffstats
path: root/drivers/video/stm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/stm.c')
-rw-r--r--drivers/video/stm.c2
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;
}