diff options
author | Sanjay Singh Rawat <srawat@nvidia.com> | 2012-07-10 21:37:35 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-07-11 15:52:34 -0700 |
commit | 88dce1cedce2c86660a82640b1e4544b6de27a97 (patch) | |
tree | 1ba1424aad8ad652192dd33d2495985c3dee38e3 /drivers/video/tegra/fb.c | |
parent | 09a2687ade101219c68c8069f54861eef1dec711 (diff) |
video: tegra: treat compilation warning as error
- Adding flag to treat warning as error.
- Handled warning of unused function.
bug 949219
Change-Id: Ic6edfc28bae95b8395cbd51e80f14aa4aa663f61
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/114624
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/fb.c')
-rw-r--r-- | drivers/video/tegra/fb.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c index 9c5c06d34938..f1cd652c3a57 100644 --- a/drivers/video/tegra/fb.c +++ b/drivers/video/tegra/fb.c @@ -245,51 +245,6 @@ static int tegra_fb_setcmap(struct fb_cmap *cmap, struct fb_info *info) return 0; } -#if defined(CONFIG_FRAMEBUFFER_CONSOLE) -static void tegra_fb_flip_win(struct tegra_fb_info *tegra_fb) -{ - struct tegra_dc_win *win = tegra_fb->win; - struct fb_info *info = tegra_fb->info; - - win->x.full = dfixed_const(0); - win->y.full = dfixed_const(0); - win->w.full = dfixed_const(tegra_fb->xres); - win->h.full = dfixed_const(tegra_fb->yres); - - /* TODO: set to output res dc */ - win->out_x = 0; - win->out_y = 0; - win->out_w = tegra_fb->xres; - win->out_h = tegra_fb->yres; - win->z = 0; - win->phys_addr = info->fix.smem_start + - (info->var.yoffset * info->fix.line_length) + - (info->var.xoffset * (info->var.bits_per_pixel / 8)); - win->virt_addr = info->screen_base; - - win->phys_addr_u = 0; - win->phys_addr_v = 0; - win->stride = info->fix.line_length; - win->stride_uv = 0; - - switch (info->var.bits_per_pixel) { - default: - WARN_ON(1); - /* fall through */ - case 32: - tegra_fb->win->fmt = TEGRA_WIN_FMT_R8G8B8A8; - break; - case 16: - tegra_fb->win->fmt = TEGRA_WIN_FMT_B5G6R5; - break; - } - win->flags = TEGRA_WIN_FLAG_ENABLED; - - tegra_dc_update_windows(&tegra_fb->win, 1); - tegra_dc_sync_windows(&tegra_fb->win, 1); -} -#endif - static int tegra_fb_blank(int blank, struct fb_info *info) { struct tegra_fb_info *tegra_fb = info->par; |