summaryrefslogtreecommitdiff
path: root/sys/dev/amr/amr.c
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/amr/amr.c
parent3273b0052350a01f85ee60a6a2e31adb31d4a5a6 (diff)
Notes
Diffstat (limited to 'sys/dev/amr/amr.c')
-rw-r--r--sys/dev/amr/amr.c4
1 files changed, 2 insertions, 2 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);