summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-01-29 05:59:42 +0000
committered <ed@FreeBSD.org>2009-01-29 05:59:42 +0000
commitdb7ede5c5092811fcf2a391e7118329f29143709 (patch)
treedd8a734068c9eb33849b66d4d9596001c3265d68 /sys
parent5a32ea009004f57a14871b380d85efd3ce8c124c (diff)
downloadFreeBSD-src-db7ede5c5092811fcf2a391e7118329f29143709.zip
FreeBSD-src-db7ede5c5092811fcf2a391e7118329f29143709.tar.gz
Make adb_mouse use dev2unit() instead of minor().
A real fix would be to migrate it to si_drv0 to store the softc directly, but this is the quickest way to fix it right now.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/adb/adb_mouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/adb/adb_mouse.c b/sys/dev/adb/adb_mouse.c
index bba38c2..09f3641 100644
--- a/sys/dev/adb/adb_mouse.c
+++ b/sys/dev/adb/adb_mouse.c
@@ -46,7 +46,7 @@
#include "adb.h"
-#define CDEV_GET_SOFTC(x) devclass_get_softc(adb_mouse_devclass, minor(x) & 0x1f)
+#define CDEV_GET_SOFTC(x) devclass_get_softc(adb_mouse_devclass, dev2unit(x) & 0x1f)
static int adb_mouse_probe(device_t dev);
static int adb_mouse_attach(device_t dev);
OpenPOWER on IntegriCloud