summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/amr/amr.c4
-rw-r--r--sys/dev/amr/amr_pci.c2
-rw-r--r--sys/dev/amr/amrvar.h2
3 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c
index 2b5eca1..e8308c6 100644
--- a/sys/dev/amr/amr.c
+++ b/sys/dev/amr/amr.c
@@ -343,7 +343,7 @@ int
amr_open(dev_t dev, int flags, int fmt, struct thread *td)
{
int unit = minor(dev);
- struct amr_softc *sc = devclass_get_softc(amr_devclass, unit);
+ struct amr_softc *sc = devclass_get_softc(devclass_find("amr"), unit);
debug_called(1);
@@ -358,7 +358,7 @@ int
amr_close(dev_t dev, int flags, int fmt, struct thread *td)
{
int unit = minor(dev);
- struct amr_softc *sc = devclass_get_softc(amr_devclass, unit);
+ struct amr_softc *sc = devclass_get_softc(devclass_find("amr"), unit);
debug_called(1);
diff --git a/sys/dev/amr/amr_pci.c b/sys/dev/amr/amr_pci.c
index e98ca4b..7f21151 100644
--- a/sys/dev/amr/amr_pci.c
+++ b/sys/dev/amr/amr_pci.c
@@ -83,7 +83,7 @@ static driver_t amr_pci_driver = {
sizeof(struct amr_softc)
};
-devclass_t amr_devclass;
+static devclass_t amr_devclass;
DRIVER_MODULE(amr, pci, amr_pci_driver, amr_devclass, 0, 0);
static struct
diff --git a/sys/dev/amr/amrvar.h b/sys/dev/amr/amrvar.h
index 330ed4e..4436b3c 100644
--- a/sys/dev/amr/amrvar.h
+++ b/sys/dev/amr/amrvar.h
@@ -199,8 +199,6 @@ extern int amr_flush(struct amr_softc *sc);
extern int amr_done(struct amr_softc *sc);
extern void amr_startio(struct amr_softc *sc);
-extern devclass_t amr_devclass;
-
/*
* Command buffer allocation.
*/
OpenPOWER on IntegriCloud