From d6ef9ba5fa59ad23bc06f21b33ed2b5a660548ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Imre=20Vad=C3=A1sz?= Date: Wed, 13 Jul 2016 22:12:28 +0200 Subject: [PATCH] vga - Remove unused vga_sub_configure variable. --- sys/dev/video/fb/vga.c | 5 ----- sys/dev/video/fb/vgareg.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/sys/dev/video/fb/vga.c b/sys/dev/video/fb/vga.c index a30d91b470..c78fb2da4a 100644 --- a/sys/dev/video/fb/vga.c +++ b/sys/dev/video/fb/vga.c @@ -176,7 +176,6 @@ static video_adapter_t biosadapter = { /* video driver declarations */ static int vga_configure(int flags); - int (*vga_sub_configure)(int flags); static int vga_error(void); static vi_probe_t vga_probe; static vi_init_t vga_init; @@ -422,8 +421,6 @@ vga_configure(int flags) if (!config_done(&biosadapter) && !(vid_register(&biosadapter) < 0)) biosadapter.va_flags |= V_ADP_REGISTERED; } - if (vga_sub_configure != NULL) - (*vga_sub_configure)(flags); return 1; } @@ -855,8 +852,6 @@ vga_init(int unit, video_adapter_t *adp, int flags) return ENXIO; adp->va_flags |= V_ADP_REGISTERED; } - if (vga_sub_configure != NULL) - (*vga_sub_configure)(0); return 0; } diff --git a/sys/dev/video/fb/vgareg.h b/sys/dev/video/fb/vgareg.h index 6f4a0ca764..15ea215294 100644 --- a/sys/dev/video/fb/vgareg.h +++ b/sys/dev/video/fb/vgareg.h @@ -91,8 +91,6 @@ int vga_mmap(cdev_t dev, vga_softc_t *sc, vm_offset_t offset, int prot); #endif -extern int (*vga_sub_configure)(int flags); - #endif /* _KERNEL */ #endif /* _DEV_FB_VGAREG_H_ */ -- 2.41.0