Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344652
b: refs/heads/master
c: 474ff6b
h: refs/heads/master
v: v3
  • Loading branch information
Tomi Valkeinen committed Nov 26, 2012
1 parent bed0c65 commit 985da2a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b76c9cdece2b14a23bfddd765f6dac1dd4d0120
refs/heads/master: 474ff6b8a79093aea966b6246d5b8000de124da9
14 changes: 9 additions & 5 deletions trunk/drivers/video/omap2/dss/dss.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,11 +753,15 @@ static int dss_get_clocks(void)

dss.dss_clk = clk;

clk = clk_get(NULL, dss.feat->clk_name);
if (IS_ERR(clk)) {
DSSERR("Failed to get %s\n", dss.feat->clk_name);
r = PTR_ERR(clk);
goto err;
if (dss.feat->clk_name) {
clk = clk_get(NULL, dss.feat->clk_name);
if (IS_ERR(clk)) {
DSSERR("Failed to get %s\n", dss.feat->clk_name);
r = PTR_ERR(clk);
goto err;
}
} else {
clk = NULL;
}

dss.dpll4_m4_ck = clk;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/omap2/omapfb/omapfb-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg)

case OMAPFB_WAITFORVSYNC:
DBG("ioctl WAITFORVSYNC\n");
if (!display && !display->output && !display->output->manager) {
if (!display || !display->output || !display->output->manager) {
r = -EINVAL;
break;
}
Expand Down

0 comments on commit 985da2a

Please sign in to comment.