Skip to content

Commit

Permalink
viafb: yet another dead code removal
Browse files Browse the repository at this point in the history
Remove some functions that were never executed and a related undocumented
module parameter.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Scott Fang <ScottFang@viatech.com.cn>
Cc: Joseph Chan <JosephChan@via.com.tw>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Florian Tobias Schandinat authored and Linus Torvalds committed Mar 12, 2010
1 parent c5f06f5 commit d8566b2
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 122 deletions.
2 changes: 1 addition & 1 deletion drivers/video/via/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

obj-$(CONFIG_FB_VIA) += viafb.o

viafb-y :=viafbdev.o hw.o iface.o via_i2c.o dvi.o lcd.o ioctl.o accel.o via_utility.o vt1636.o global.o tblDPASetting.o viamode.o tbl1636.o
viafb-y :=viafbdev.o hw.o via_i2c.o dvi.o lcd.o ioctl.o accel.o via_utility.o vt1636.o global.o tblDPASetting.o viamode.o tbl1636.o
1 change: 0 additions & 1 deletion drivers/video/via/global.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ int viafb_platform_epia_dvi = STATE_OFF;
int viafb_device_lcd_dualedge = STATE_OFF;
int viafb_bus_width = 12;
int viafb_display_hardware_layout = HW_LAYOUT_LCD_DVI;
int viafb_memsize;
int viafb_DeviceStatus = CRT_Device;
int viafb_hotplug;
int viafb_refresh = 60;
Expand Down
1 change: 0 additions & 1 deletion drivers/video/via/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

#include "debug.h"

#include "iface.h"
#include "viafbdev.h"
#include "chip.h"
#include "accel.h"
Expand Down
78 changes: 0 additions & 78 deletions drivers/video/via/iface.c

This file was deleted.

38 changes: 0 additions & 38 deletions drivers/video/via/iface.h

This file was deleted.

2 changes: 0 additions & 2 deletions drivers/video/via/viafbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2215,8 +2215,6 @@ module_init(viafb_init);
module_exit(viafb_exit);

#ifdef MODULE
module_param(viafb_memsize, int, S_IRUSR);

module_param(viafb_mode, charp, S_IRUSR);
MODULE_PARM_DESC(viafb_mode, "Set resolution (default=640x480)");

Expand Down
1 change: 0 additions & 1 deletion drivers/video/via/viafbdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ extern int viafb_LCD2_ON;
extern int viafb_LCD_ON;
extern int viafb_DVI_ON;
extern int viafb_hotplug;
extern int viafb_memsize;

extern int strict_strtoul(const char *cp, unsigned int base,
unsigned long *res);
Expand Down

0 comments on commit d8566b2

Please sign in to comment.