summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKevin Huang <kevinh@nvidia.com>2011-05-06 13:40:53 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:45:02 -0800
commitc4461ce50b032d6ece330bd096bd6725395a28a0 (patch)
treeef6b58028298253d9a0d08e1339f22f0868d88be /drivers
parent632ecc8566c3206d2250b2b567a8a701cce959e6 (diff)
video: tegra: Fixed compilation warnings.
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
Diffstat (limited to 'drivers')
-rwxr-xr-xdrivers/video/tegra/dc/dsi.c3
-rw-r--r--drivers/video/tegra/dc/overlay.c4
-rw-r--r--drivers/video/tegra/fb.c4
3 files changed, 5 insertions, 6 deletions
diff --git a/drivers/video/tegra/dc/dsi.c b/drivers/video/tegra/dc/dsi.c
index d2b8cdf214ba..a98ef9966613 100755
--- a/drivers/video/tegra/dc/dsi.c
+++ b/drivers/video/tegra/dc/dsi.c
@@ -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;
diff --git a/drivers/video/tegra/dc/overlay.c b/drivers/video/tegra/dc/overlay.c
index a70b9bbfb752..419f8f71abbb 100644
--- a/drivers/video/tegra/dc/overlay.c
+++ b/drivers/video/tegra/dc/overlay.c
@@ -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",
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c
index 4f618179c9fb..b7492670d1b9 100644
--- a/drivers/video/tegra/fb.c
+++ b/drivers/video/tegra/fb.c
@@ -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",