diff options
Diffstat (limited to 'drivers/video/fbmem.c')
-rw-r--r-- | drivers/video/fbmem.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 31143afe7c95..33034f81114d 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -11,7 +11,6 @@ | |||
11 | * for more details. | 11 | * for more details. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/config.h> | ||
15 | #include <linux/module.h> | 14 | #include <linux/module.h> |
16 | 15 | ||
17 | #include <linux/compat.h> | 16 | #include <linux/compat.h> |
@@ -32,7 +31,6 @@ | |||
32 | #ifdef CONFIG_KMOD | 31 | #ifdef CONFIG_KMOD |
33 | #include <linux/kmod.h> | 32 | #include <linux/kmod.h> |
34 | #endif | 33 | #endif |
35 | #include <linux/devfs_fs_kernel.h> | ||
36 | #include <linux/err.h> | 34 | #include <linux/err.h> |
37 | #include <linux/device.h> | 35 | #include <linux/device.h> |
38 | #include <linux/efi.h> | 36 | #include <linux/efi.h> |
@@ -1331,8 +1329,6 @@ register_framebuffer(struct fb_info *fb_info) | |||
1331 | fb_add_videomode(&mode, &fb_info->modelist); | 1329 | fb_add_videomode(&mode, &fb_info->modelist); |
1332 | registered_fb[i] = fb_info; | 1330 | registered_fb[i] = fb_info; |
1333 | 1331 | ||
1334 | devfs_mk_cdev(MKDEV(FB_MAJOR, i), | ||
1335 | S_IFCHR | S_IRUGO | S_IWUGO, "fb/%d", i); | ||
1336 | event.info = fb_info; | 1332 | event.info = fb_info; |
1337 | blocking_notifier_call_chain(&fb_notifier_list, | 1333 | blocking_notifier_call_chain(&fb_notifier_list, |
1338 | FB_EVENT_FB_REGISTERED, &event); | 1334 | FB_EVENT_FB_REGISTERED, &event); |
@@ -1359,7 +1355,6 @@ unregister_framebuffer(struct fb_info *fb_info) | |||
1359 | i = fb_info->node; | 1355 | i = fb_info->node; |
1360 | if (!registered_fb[i]) | 1356 | if (!registered_fb[i]) |
1361 | return -EINVAL; | 1357 | return -EINVAL; |
1362 | devfs_remove("fb/%d", i); | ||
1363 | 1358 | ||
1364 | if (fb_info->pixmap.addr && | 1359 | if (fb_info->pixmap.addr && |
1365 | (fb_info->pixmap.flags & FB_PIXMAP_DEFAULT)) | 1360 | (fb_info->pixmap.flags & FB_PIXMAP_DEFAULT)) |
@@ -1432,7 +1427,6 @@ fbmem_init(void) | |||
1432 | { | 1427 | { |
1433 | create_proc_read_entry("fb", 0, NULL, fbmem_read_proc, NULL); | 1428 | create_proc_read_entry("fb", 0, NULL, fbmem_read_proc, NULL); |
1434 | 1429 | ||
1435 | devfs_mk_dir("fb"); | ||
1436 | if (register_chrdev(FB_MAJOR,"fb",&fb_fops)) | 1430 | if (register_chrdev(FB_MAJOR,"fb",&fb_fops)) |
1437 | printk("unable to get major %d for fb devs\n", FB_MAJOR); | 1431 | printk("unable to get major %d for fb devs\n", FB_MAJOR); |
1438 | 1432 | ||