summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb/fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/fb/fb.c')
-rw-r--r--sys/dev/fb/fb.c2
1 files changed, 1 insertions, 1 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 */
OpenPOWER on IntegriCloud