aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/ulpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/ulpt.c')
-rw-r--r--sys/dev/usb/ulpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ulpt.c b/sys/dev/usb/ulpt.c
index 909aa28eb6bb..99a14338e4fa 100644
--- a/sys/dev/usb/ulpt.c
+++ b/sys/dev/usb/ulpt.c
@@ -163,8 +163,8 @@ void ulpt_tick(void *xsc);
void ieee1284_print_id(char *);
#endif
-#define ULPTUNIT(s) (minor(s) & 0x1f)
-#define ULPTFLAGS(s) (minor(s) & 0xe0)
+#define ULPTUNIT(s) (dev2unit(s) & 0x1f)
+#define ULPTFLAGS(s) (dev2unit(s) & 0xe0)
static device_probe_t ulpt_match;
static device_attach_t ulpt_attach;