diff options
author | ed <ed@FreeBSD.org> | 2009-01-29 05:59:42 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-01-29 05:59:42 +0000 |
commit | db7ede5c5092811fcf2a391e7118329f29143709 (patch) | |
tree | dd8a734068c9eb33849b66d4d9596001c3265d68 /sys | |
parent | 5a32ea009004f57a14871b380d85efd3ce8c124c (diff) | |
download | FreeBSD-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.c | 2 |
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); |