summaryrefslogtreecommitdiffstats
path: root/sys/dev/amr/amr.c
diff options
context:
space:
mode:
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 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);
OpenPOWER on IntegriCloud