video: tegra: Fixed compilation warnings.
Kevin Huang [Fri, 6 May 2011 20:40:53 +0000 (13:40 -0700)]
Original-Change-Id: Ie46f78c54ea8f7bf04fa33c368123e760c072999
Reviewed-on: http://git-master/r/30751
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Raf05cd039655b68ebd398c5cf517c292ba10d493

drivers/video/tegra/dc/dsi.c
drivers/video/tegra/dc/overlay.c
drivers/video/tegra/fb.c

index d2b8cdf..a98ef99 100755 (executable)
@@ -1175,8 +1175,7 @@ static int tegra_dsi_write_data(struct tegra_dc *dc,
 {
        bool switch_back_to_hs_mode;
        bool switch_back_to_dc_mode;
-       u32 val;
-       int     err;
+       int err;
 
        err = 0;
        switch_back_to_hs_mode = false;
index a70b9bb..419f8f7 100644 (file)
@@ -162,10 +162,10 @@ static int tegra_overlay_set_windowattr(struct tegra_overlay_info *overlay,
        win->out_h = flip_win->attr.out_h;
 
        WARN_ONCE(win->out_x >= xres,
-               "%s:application window x offset exceeds display width(%d)\n",
+               "%s:application window x offset(%d) exceeds display width(%d)\n",
                dev_name(&win->dc->ndev->dev), win->out_x, xres);
        WARN_ONCE(win->out_y >= yres,
-               "%s:application window y offset exceeds display height(%d)\n",
+               "%s:application window y offset(%d) exceeds display height(%d)\n",
                dev_name(&win->dc->ndev->dev), win->out_y, yres);
        WARN_ONCE(win->out_x + win->out_w > xres && win->out_x < xres,
                "%s:application window width(%d) exceeds display width(%d)\n",
index 4f61817..b749267 100644 (file)
@@ -402,10 +402,10 @@ static int tegra_fb_set_windowattr(struct tegra_fb_info *tegra_fb,
        win->out_h = flip_win->attr.out_h;
 
        WARN_ONCE(win->out_x >= xres,
-               "%s:application window x offset exceeds display width(%d)\n",
+               "%s:application window x offset(%d) exceeds display width(%d)\n",
                dev_name(&win->dc->ndev->dev), win->out_x, xres);
        WARN_ONCE(win->out_y >= yres,
-               "%s:application window y offset exceeds display height(%d)\n",
+               "%s:application window y offset(%d) exceeds display height(%d)\n",
                dev_name(&win->dc->ndev->dev), win->out_y, yres);
        WARN_ONCE(win->out_x + win->out_w > xres && win->out_x < xres,
                "%s:application window width(%d) exceeds display width(%d)\n",