diff options
author | Kevin Huang <kevinh@nvidia.com> | 2011-05-06 13:40:53 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-05-11 15:48:53 -0700 |
commit | 18b153731f295912bd3c2c36a49b8113770c57f2 (patch) | |
tree | a933149198f95fe1581ca4b784419e310a43b8f7 /drivers | |
parent | 2e1ed9d168fa449790f5235e60577024060f4b9d (diff) |
video: tegra: Fixed compilation warnings.
Change-Id: Ie46f78c54ea8f7bf04fa33c368123e760c072999
Reviewed-on: http://git-master/r/30751
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'drivers')
-rwxr-xr-x | drivers/video/tegra/dc/dsi.c | 3 | ||||
-rw-r--r-- | drivers/video/tegra/dc/overlay.c | 4 | ||||
-rw-r--r-- | drivers/video/tegra/fb.c | 4 |
3 files changed, 5 insertions, 6 deletions
diff --git a/drivers/video/tegra/dc/dsi.c b/drivers/video/tegra/dc/dsi.c index 8ddd9a9c0f48..552e0fd1f0ae 100755 --- a/drivers/video/tegra/dc/dsi.c +++ b/drivers/video/tegra/dc/dsi.c @@ -1177,8 +1177,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 b1ce209c2c25..978377aba789 100644 --- a/drivers/video/tegra/fb.c +++ b/drivers/video/tegra/fb.c @@ -395,10 +395,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", |