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.
This commit is contained in:
parent
64e4196db9
commit
218653a7fc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187878
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user