From f7afd87572cc3380a15734e37750e6a4f9e77899 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Wed, 27 Feb 2002 23:47:45 +0000 Subject: [PATCH] Fix warnings. The driver would be more useful with a DRIVER_MODULE() entry so that it actually can do something. --- sys/dev/digi/digi.c | 2 +- sys/dev/digi/digi.h | 2 ++ sys/dev/digi/digi_isa.c | 1 + sys/dev/digi/digi_pci.c | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/digi/digi.c b/sys/dev/digi/digi.c index 0f0ce0046cf3..6b92a35360fb 100644 --- a/sys/dev/digi/digi.c +++ b/sys/dev/digi/digi.c @@ -106,7 +106,7 @@ struct con_bios { }; static struct con_bios *con_bios_list; -static devclass_t digi_devclass; +devclass_t digi_devclass; static char driver_name[] = "digi"; unsigned digi_debug = 0; diff --git a/sys/dev/digi/digi.h b/sys/dev/digi/digi.h index eaad88fee636..574c80d844b0 100644 --- a/sys/dev/digi/digi.h +++ b/sys/dev/digi/digi.h @@ -206,6 +206,8 @@ struct digi_softc { #endif }; +extern devclass_t digi_devclass; + extern const struct digi_control_signals digi_xixe_signals; extern const struct digi_control_signals digi_normal_signals; diff --git a/sys/dev/digi/digi_isa.c b/sys/dev/digi/digi_isa.c index 5e10c0f657d0..713a8933b8c5 100644 --- a/sys/dev/digi/digi_isa.c +++ b/sys/dev/digi/digi_isa.c @@ -469,3 +469,4 @@ static driver_t digi_isa_drv = { digi_isa_methods, sizeof(struct digi_softc), }; +DRIVER_MODULE(digi, isa, digi_isa_drv, digi_devclass, 0, 0); diff --git a/sys/dev/digi/digi_pci.c b/sys/dev/digi/digi_pci.c index 403d6416ebd8..14d036072ae2 100644 --- a/sys/dev/digi/digi_pci.c +++ b/sys/dev/digi/digi_pci.c @@ -225,3 +225,4 @@ static driver_t digi_pci_drv = { digi_pci_methods, sizeof(struct digi_softc), }; +DRIVER_MODULE(digi, pci, digi_pci_drv, digi_devclass, 0, 0);