summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/fb')
-rw-r--r--sys/dev/fb/fb.c2
-rw-r--r--sys/dev/fb/vgareg.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fb/fb.c b/sys/dev/fb/fb.c
index dbb9f36..21871f6 100644
--- a/sys/dev/fb/fb.c
+++ b/sys/dev/fb/fb.c
@@ -350,7 +350,7 @@ fbattach(device_t dev)
#endif
-#define FB_UNIT(dev) minor(dev)
+#define FB_UNIT(dev) dev2unit(dev)
#define FB_MKMINOR(unit) (u)
#if 0 /* experimental */
diff --git a/sys/dev/fb/vgareg.h b/sys/dev/fb/vgareg.h
index 4ccef40..0a73fbd 100644
--- a/sys/dev/fb/vgareg.h
+++ b/sys/dev/fb/vgareg.h
@@ -61,7 +61,7 @@
#define GDCREG (IO_VGA + 0x0F) /* graph data controller data */
#define VGA_DRIVER_NAME "vga"
-#define VGA_UNIT(dev) minor(dev)
+#define VGA_UNIT(dev) dev2unit(dev)
#define VGA_MKMINOR(unit) (unit)
#ifdef _KERNEL
OpenPOWER on IntegriCloud