summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/fb/fbd.c
diff options
context:
space:
mode:
authorVijay Kumar Banerjee <vijaykumar9597@gmail.com>2019-08-04 01:49:43 +0530
committerChristian Mauderer <oss@c-mauderer.de>2019-08-11 15:57:54 +0200
commitd7c01f45691d4289c5b8d5cafe9e2776b03731ea (patch)
tree1af44bf7d6cfce60ed3605c20d5d86b4500379c4 /freebsd/sys/dev/fb/fbd.c
parentfbd: Import from FreeBSD (diff)
downloadrtems-libbsd-d7c01f45691d4289c5b8d5cafe9e2776b03731ea.tar.bz2
fbd: Port to RTEMS
Diffstat (limited to 'freebsd/sys/dev/fb/fbd.c')
-rw-r--r--freebsd/sys/dev/fb/fbd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/sys/dev/fb/fbd.c b/freebsd/sys/dev/fb/fbd.c
index 60ce4bc3..871e193c 100644
--- a/freebsd/sys/dev/fb/fbd.c
+++ b/freebsd/sys/dev/fb/fbd.c
@@ -257,11 +257,13 @@ fbd_register(struct fb_info* info)
err = fb_init(entry, framebuffer_dev_unit++);
if (err)
return (err);
+#ifndef __rtems__
if (first) {
err = vt_fb_attach(info);
if (err)
return (err);
}
+#endif /* __rtems__ */
return (0);
}
@@ -274,8 +276,10 @@ fbd_unregister(struct fb_info* info)
LIST_FOREACH_SAFE(entry, &fb_list_head, fb_list, tmp) {
if (entry->fb_info == info) {
LIST_REMOVE(entry, fb_list);
+#ifndef __rtems__
if (LIST_EMPTY(&fb_list_head))
vt_fb_detach(info);
+#endif /* __rtems__ */
free(entry, M_DEVBUF);
return (0);
}