diff options
Diffstat (limited to 'drivers/video/fbmem.c')
-rw-r--r-- | drivers/video/fbmem.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 7705070191d9..8cef020d1801 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -1040,7 +1040,7 @@ static struct file_operations fb_fops = { | |||
1040 | #endif | 1040 | #endif |
1041 | }; | 1041 | }; |
1042 | 1042 | ||
1043 | static struct class_simple *fb_class; | 1043 | static struct class *fb_class; |
1044 | 1044 | ||
1045 | /** | 1045 | /** |
1046 | * register_framebuffer - registers a frame buffer device | 1046 | * register_framebuffer - registers a frame buffer device |
@@ -1066,7 +1066,7 @@ register_framebuffer(struct fb_info *fb_info) | |||
1066 | break; | 1066 | break; |
1067 | fb_info->node = i; | 1067 | fb_info->node = i; |
1068 | 1068 | ||
1069 | fb_info->class_device = class_simple_device_add(fb_class, MKDEV(FB_MAJOR, i), | 1069 | fb_info->class_device = class_device_create(fb_class, MKDEV(FB_MAJOR, i), |
1070 | fb_info->device, "fb%d", i); | 1070 | fb_info->device, "fb%d", i); |
1071 | if (IS_ERR(fb_info->class_device)) { | 1071 | if (IS_ERR(fb_info->class_device)) { |
1072 | /* Not fatal */ | 1072 | /* Not fatal */ |
@@ -1134,7 +1134,7 @@ unregister_framebuffer(struct fb_info *fb_info) | |||
1134 | registered_fb[i]=NULL; | 1134 | registered_fb[i]=NULL; |
1135 | num_registered_fb--; | 1135 | num_registered_fb--; |
1136 | fb_cleanup_class_device(fb_info); | 1136 | fb_cleanup_class_device(fb_info); |
1137 | class_simple_device_remove(MKDEV(FB_MAJOR, i)); | 1137 | class_device_destroy(fb_class, MKDEV(FB_MAJOR, i)); |
1138 | return 0; | 1138 | return 0; |
1139 | } | 1139 | } |
1140 | 1140 | ||
@@ -1197,7 +1197,7 @@ fbmem_init(void) | |||
1197 | if (register_chrdev(FB_MAJOR,"fb",&fb_fops)) | 1197 | if (register_chrdev(FB_MAJOR,"fb",&fb_fops)) |
1198 | printk("unable to get major %d for fb devs\n", FB_MAJOR); | 1198 | printk("unable to get major %d for fb devs\n", FB_MAJOR); |
1199 | 1199 | ||
1200 | fb_class = class_simple_create(THIS_MODULE, "graphics"); | 1200 | fb_class = class_create(THIS_MODULE, "graphics"); |
1201 | if (IS_ERR(fb_class)) { | 1201 | if (IS_ERR(fb_class)) { |
1202 | printk(KERN_WARNING "Unable to create fb class; errno = %ld\n", PTR_ERR(fb_class)); | 1202 | printk(KERN_WARNING "Unable to create fb class; errno = %ld\n", PTR_ERR(fb_class)); |
1203 | fb_class = NULL; | 1203 | fb_class = NULL; |
@@ -1210,7 +1210,7 @@ module_init(fbmem_init); | |||
1210 | static void __exit | 1210 | static void __exit |
1211 | fbmem_exit(void) | 1211 | fbmem_exit(void) |
1212 | { | 1212 | { |
1213 | class_simple_destroy(fb_class); | 1213 | class_destroy(fb_class); |
1214 | } | 1214 | } |
1215 | 1215 | ||
1216 | module_exit(fbmem_exit); | 1216 | module_exit(fbmem_exit); |