summaryrefslogtreecommitdiffstats
path: root/sys/dev/pbio/pbio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pbio/pbio.c')
-rw-r--r--sys/dev/pbio/pbio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pbio/pbio.c b/sys/dev/pbio/pbio.c
index 3ba3c12..536e6fb 100644
--- a/sys/dev/pbio/pbio.c
+++ b/sys/dev/pbio/pbio.c
@@ -79,8 +79,8 @@ static char *port_names[] = {"a", "b", "ch", "cl"};
#define PBIO_PNAME(n) (port_names[(n)])
-#define UNIT(dev) (minor(dev) >> 2)
-#define PORT(dev) (minor(dev) & 0x3)
+#define UNIT(dev) (dev2unit(dev) >> 2)
+#define PORT(dev) (dev2unit(dev) & 0x3)
#define PBIOPRI ((PZERO + 5) | PCATCH)
OpenPOWER on IntegriCloud