diff options
-rw-r--r-- | drivers/video/omap2/dss/dss.c | 14 | ||||
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-ioctl.c | 2 |
2 files changed, 10 insertions, 6 deletions
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index df3d89a8c8a9..6ca69d55cf57 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c | |||
@@ -753,11 +753,15 @@ static int dss_get_clocks(void) | |||
753 | 753 | ||
754 | dss.dss_clk = clk; | 754 | dss.dss_clk = clk; |
755 | 755 | ||
756 | clk = clk_get(NULL, dss.feat->clk_name); | 756 | if (dss.feat->clk_name) { |
757 | if (IS_ERR(clk)) { | 757 | clk = clk_get(NULL, dss.feat->clk_name); |
758 | DSSERR("Failed to get %s\n", dss.feat->clk_name); | 758 | if (IS_ERR(clk)) { |
759 | r = PTR_ERR(clk); | 759 | DSSERR("Failed to get %s\n", dss.feat->clk_name); |
760 | goto err; | 760 | r = PTR_ERR(clk); |
761 | goto err; | ||
762 | } | ||
763 | } else { | ||
764 | clk = NULL; | ||
761 | } | 765 | } |
762 | 766 | ||
763 | dss.dpll4_m4_ck = clk; | 767 | dss.dpll4_m4_ck = clk; |
diff --git a/drivers/video/omap2/omapfb/omapfb-ioctl.c b/drivers/video/omap2/omapfb/omapfb-ioctl.c index 442cff4dea78..8b1e9e375f02 100644 --- a/drivers/video/omap2/omapfb/omapfb-ioctl.c +++ b/drivers/video/omap2/omapfb/omapfb-ioctl.c | |||
@@ -787,7 +787,7 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg) | |||
787 | 787 | ||
788 | case OMAPFB_WAITFORVSYNC: | 788 | case OMAPFB_WAITFORVSYNC: |
789 | DBG("ioctl WAITFORVSYNC\n"); | 789 | DBG("ioctl WAITFORVSYNC\n"); |
790 | if (!display && !display->output && !display->output->manager) { | 790 | if (!display || !display->output || !display->output->manager) { |
791 | r = -EINVAL; | 791 | r = -EINVAL; |
792 | break; | 792 | break; |
793 | } | 793 | } |