summaryrefslogtreecommitdiffstats
path: root/drivers/video/via/viafbdev.c
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-02-12 20:34:17 +0000
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-03-04 12:05:15 +0000
commit91dc1be8f698eb016343d534159a919678e3889c (patch)
tree286944db798d0254314e9e346cf74fa9c87211d3 /drivers/video/via/viafbdev.c
parent70a27df1579b0e8d7d478d034980f8a7f8a20d54 (diff)
downloadlinux-91dc1be8f698eb016343d534159a919678e3889c.tar.gz
linux-91dc1be8f698eb016343d534159a919678e3889c.tar.bz2
linux-91dc1be8f698eb016343d534159a919678e3889c.zip
viafb: LCD bpp cleanup
This patch removes redundant bits per pixel information by using the one storged in var directly. Simplifies code without any functional changes. Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via/viafbdev.c')
-rw-r--r--drivers/video/via/viafbdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c
index 9cfa92ef6bd0..7529340f4ea2 100644
--- a/drivers/video/via/viafbdev.c
+++ b/drivers/video/via/viafbdev.c
@@ -303,7 +303,7 @@ static int viafb_set_par(struct fb_info *info)
info->flags &= ~FBINFO_HWACCEL_DISABLED;
else
info->flags |= FBINFO_HWACCEL_DISABLED;
- viafb_setmode(info->var.bits_per_pixel, viafb_bpp1);
+ viafb_setmode();
viafb_pan_display(&info->var, info);
}