summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-01-29 05:59:42 +0000
committerEd Schouten <ed@FreeBSD.org>2009-01-29 05:59:42 +0000
commit218653a7fc55db69075f14de865963d83e9ef801 (patch)
treedd8a734068c9eb33849b66d4d9596001c3265d68
parent64e4196db9dd79831b83b692516520feacf8b816 (diff)
Notes
-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 bba38c2fa382..09f364136172 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);