summaryrefslogtreecommitdiffstats
path: root/sys/dev/amr
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2002-01-08 06:47:02 +0000
committermsmith <msmith@FreeBSD.org>2002-01-08 06:47:02 +0000
commite868bf2df8918addff6d6a00b20bdaf6d6fcf306 (patch)
treebf81d9ce7ab083d49d25dd29d108037154a92df3 /sys/dev/amr
parenta855b09ad999235f62fe29261a98fd8b6773a73d (diff)
downloadFreeBSD-src-e868bf2df8918addff6d6a00b20bdaf6d6fcf306.zip
FreeBSD-src-e868bf2df8918addff6d6a00b20bdaf6d6fcf306.tar.gz
Staticise the amr devclass.
Diffstat (limited to 'sys/dev/amr')
-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