summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>2001-06-30 10:15:13 +0000
committeryokota <yokota@FreeBSD.org>2001-06-30 10:15:13 +0000
commite8eb8a31d4de26acf6bbdc811ed75782d01f80b4 (patch)
treefa4bc2441dbc15aa9d2e8aeb49f62d413803f871
parent33d7ab4772689f5be1053406c1508b005b416269 (diff)
downloadFreeBSD-src-e8eb8a31d4de26acf6bbdc811ed75782d01f80b4.zip
FreeBSD-src-e8eb8a31d4de26acf6bbdc811ed75782d01f80b4.tar.gz
Remove the resume method. It is not necessary any more, because
keyboard drivers have it now... MFC after: 4 weeks
-rw-r--r--sys/dev/syscons/syscons.c12
-rw-r--r--sys/dev/syscons/syscons.h1
-rw-r--r--sys/isa/syscons_isa.c7
3 files changed, 0 insertions, 20 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index ed441bd..56e09e5 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -426,18 +426,6 @@ scmeminit(void *arg)
/* XXX */
SYSINIT(sc_mem, SI_SUB_KMEM, SI_ORDER_ANY, scmeminit, NULL);
-int
-sc_resume_unit(int unit)
-{
- /* XXX should be moved to the keyboard driver? */
- sc_softc_t *sc;
-
- sc = sc_get_softc(unit, (sc_console_unit == unit) ? SC_KERNEL_CONSOLE : 0);
- if (sc->kbd != NULL)
- kbd_clear_state(sc->kbd);
- return 0;
-}
-
static int
scdevtounit(dev_t dev)
{
diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h
index 1924158..5944e34 100644
--- a/sys/dev/syscons/syscons.h
+++ b/sys/dev/syscons/syscons.h
@@ -494,7 +494,6 @@ extern int (*sc_user_ioctl)(dev_t dev, u_long cmd, caddr_t data,
int sc_probe_unit(int unit, int flags);
int sc_attach_unit(int unit, int flags);
-int sc_resume_unit(int unit);
int set_mode(scr_stat *scp);
diff --git a/sys/isa/syscons_isa.c b/sys/isa/syscons_isa.c
index 8bafee5..e6c4380 100644
--- a/sys/isa/syscons_isa.c
+++ b/sys/isa/syscons_isa.c
@@ -88,12 +88,6 @@ scattach(device_t dev)
return sc_attach_unit(device_get_unit(dev), device_get_flags(dev));
}
-static int
-scresume(device_t dev)
-{
- return sc_resume_unit(device_get_unit(dev));
-}
-
int
sc_max_unit(void)
{
@@ -236,7 +230,6 @@ static device_method_t sc_methods[] = {
DEVMETHOD(device_identify, scidentify),
DEVMETHOD(device_probe, scprobe),
DEVMETHOD(device_attach, scattach),
- DEVMETHOD(device_resume, scresume),
{ 0, 0 }
};
OpenPOWER on IntegriCloud