summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-02-26 21:14:39 +0000
committerphk <phk@FreeBSD.org>2003-02-26 21:14:39 +0000
commitdb9bbbcf0669e7054a999dea570347b9ed02394d (patch)
treee850327c28445ffdd21723907ff73418e5c7d265 /sys/dev/fb
parent15c4b54f77bc19aaab96dc0ddcea9cf147dca5f7 (diff)
downloadFreeBSD-src-db9bbbcf0669e7054a999dea570347b9ed02394d.zip
FreeBSD-src-db9bbbcf0669e7054a999dea570347b9ed02394d.tar.gz
NODEVFS cleanup:
Don't call cdevsw_{add,remove}() Bracket a more correct subset in "#if experimental"
Diffstat (limited to 'sys/dev/fb')
-rw-r--r--sys/dev/fb/fb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/fb/fb.c b/sys/dev/fb/fb.c
index 6f8bab7..839e9a4 100644
--- a/sys/dev/fb/fb.c
+++ b/sys/dev/fb/fb.c
@@ -352,6 +352,7 @@ fbattach(device_t dev)
#define FB_UNIT(dev) minor(dev)
#define FB_MKMINOR(unit) (u)
+#if experimental
static d_open_t fbopen;
static d_close_t fbclose;
static d_read_t fbread;
@@ -376,6 +377,7 @@ static struct cdevsw fb_cdevsw = {
/* psize */ nopsize,
/* flags */ 0,
};
+#endif
static int
@@ -384,7 +386,6 @@ fb_modevent(module_t mod, int type, void *data)
switch (type) {
case MOD_LOAD:
- cdevsw_add(&fb_cdevsw);
break;
case MOD_UNLOAD:
printf("fb module unload - not possible for this module type\n");
@@ -438,6 +439,7 @@ fb_detach(dev_t dev, video_adapter_t *adp, struct cdevsw *cdevsw)
return 0;
}
+#if experimental
static int
fbopen(dev_t dev, int flag, int mode, struct thread *td)
{
@@ -512,7 +514,6 @@ fbmmap(dev_t dev, vm_offset_t offset, vm_offset_t *paddr, int nprot)
offset, paddr, nprot);
}
-#if experimental
DEV_DRIVER_MODULE(fb, ???, fb_driver, fb_devclass, fb_cdevsw, 0, 0);
#endif
OpenPOWER on IntegriCloud