Skip to content

Commit 3161986

Browse files
geertuLinus Torvalds
authored andcommitted
[PATCH] fbdev: remove references to non-existent fbmon_valid_timings()
Remove references to non-existent fbmon_valid_timings() Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: James Simmons <jsimmons@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent f13c152 commit 3161986

3 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎drivers/video/amifb.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2906,14 +2906,6 @@ static int ami_decode_var(struct fb_var_screeninfo *var,
29062906
par->crsr.spot_x = par->crsr.spot_y = 0;
29072907
par->crsr.height = par->crsr.width = 0;
29082908

2909-
#if 0 /* fbmon not done. uncomment for 2.5.x -brad */
2910-
if (!fbmon_valid_timings(pixclock[clk_shift], htotal, vtotal,
2911-
&fb_info)) {
2912-
DPRINTK("mode doesn't fit for monitor\n");
2913-
return -EINVAL;
2914-
}
2915-
#endif
2916-
29172909
return 0;
29182910
}
29192911

‎drivers/video/aty/atyfb_base.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,10 +1488,6 @@ static int atyfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
14881488
else
14891489
info->var.accel_flags = 0;
14901490

1491-
#if 0 /* fbmon is not done. uncomment for 2.5.x -brad */
1492-
if (!fbmon_valid_timings(pixclock, htotal, vtotal, info))
1493-
return -EINVAL;
1494-
#endif
14951491
aty_crtc_to_var(&crtc, var);
14961492
var->pixclock = par->pll_ops->pll_to_var(info, &pll);
14971493
return 0;

‎include/linux/fb.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,8 +929,6 @@ extern void fb_bl_default_curve(struct fb_info *fb_info, u8 off, u8 min, u8 max)
929929
#define FB_MODE_IS_FIRST 16
930930
#define FB_MODE_IS_FROM_VAR 32
931931

932-
extern int fbmon_valid_timings(u_int pixclock, u_int htotal, u_int vtotal,
933-
const struct fb_info *fb_info);
934932
extern int fbmon_dpms(const struct fb_info *fb_info);
935933
extern int fb_get_mode(int flags, u32 val, struct fb_var_screeninfo *var,
936934
struct fb_info *info);

0 commit comments

Comments
 (0)