summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c')
-rw-r--r--sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c b/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
index 8db419a..17180d0 100644
--- a/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
+++ b/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
@@ -83,8 +83,8 @@ typedef struct ubtbcmfw_softc *ubtbcmfw_softc_p;
* Device methods
*/
-#define UBTBCMFW_UNIT(n) ((minor(n) >> 4) & 0xf)
-#define UBTBCMFW_ENDPOINT(n) (minor(n) & 0xf)
+#define UBTBCMFW_UNIT(n) ((dev2unit(n) >> 4) & 0xf)
+#define UBTBCMFW_ENDPOINT(n) (dev2unit(n) & 0xf)
#define UBTBCMFW_MINOR(u, e) (((u) << 4) | (e))
#define UBTBCMFW_BSIZE 1024
OpenPOWER on IntegriCloud