]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge tag 'omapdss-for-3.7-rc' of git://gitorious.org/linux-omap-dss2/linux
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 26 Nov 2012 08:26:29 +0000 (10:26 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 26 Nov 2012 08:26:29 +0000 (10:26 +0200)
omapdss fixes for 3.7-rc

Conflicts:
drivers/video/omap2/dss/dss.c

drivers/video/omap2/dss/dss.c
drivers/video/omap2/omapfb/omapfb-ioctl.c

index df3d89a8c8a993667ea78a8bd9cf239fdae0e63b..6ca69d55cf57e42ba111b481bf55996a4949e14d 100644 (file)
@@ -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;
index 442cff4dea78e14cef448c6f3c6812c57a2311f8..8b1e9e375f02ef42d54dc775ff69bece1709bad0 100644 (file)
@@ -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;
                }