aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>2002-01-08 06:47:02 +0000
committerMike Smith <msmith@FreeBSD.org>2002-01-08 06:47:02 +0000
commit21550f28f86dc2bfe5d48e7a984cb78f80e43b08 (patch)
treebf81d9ce7ab083d49d25dd29d108037154a92df3 /sys/dev
parent3273b0052350a01f85ee60a6a2e31adb31d4a5a6 (diff)
downloadsrc-21550f28f86dc2bfe5d48e7a984cb78f80e43b08.tar.gz
src-21550f28f86dc2bfe5d48e7a984cb78f80e43b08.zip
Staticise the amr devclass.
Notes
Notes: svn path=/head/; revision=89055
Diffstat (limited to 'sys/dev')
-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 2b5eca1622ff..e8308c634bbd 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 e98ca4baecaf..7f2115169881 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 330ed4ee1267..4436b3c60584 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.
*/