diff options
Diffstat (limited to 'drivers/video/fbmem.c')
-rw-r--r-- | drivers/video/fbmem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 3f18bb9abad0..217c5118ae9e 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -1430,9 +1430,8 @@ register_framebuffer(struct fb_info *fb_info) | |||
1430 | break; | 1430 | break; |
1431 | fb_info->node = i; | 1431 | fb_info->node = i; |
1432 | 1432 | ||
1433 | fb_info->dev = device_create_drvdata(fb_class, fb_info->device, | 1433 | fb_info->dev = device_create(fb_class, fb_info->device, |
1434 | MKDEV(FB_MAJOR, i), NULL, | 1434 | MKDEV(FB_MAJOR, i), NULL, "fb%d", i); |
1435 | "fb%d", i); | ||
1436 | if (IS_ERR(fb_info->dev)) { | 1435 | if (IS_ERR(fb_info->dev)) { |
1437 | /* Not fatal */ | 1436 | /* Not fatal */ |
1438 | printk(KERN_WARNING "Unable to create device for framebuffer %d; errno = %ld\n", i, PTR_ERR(fb_info->dev)); | 1437 | printk(KERN_WARNING "Unable to create device for framebuffer %d; errno = %ld\n", i, PTR_ERR(fb_info->dev)); |