]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/fbmem.c
device create: video: convert device_create_drvdata to device_create
[linux-2.6-omap-h63xx.git] / drivers / video / fbmem.c
index 0737570030f5e85459b4f926e3a4e8a7aaa09b3d..61b36ca06997c127e8a4e8be1e9b87e14a85aaa6 100644 (file)
@@ -1443,9 +1443,8 @@ register_framebuffer(struct fb_info *fb_info)
                        break;
        fb_info->node = i;
 
-       fb_info->dev = device_create_drvdata(fb_class, fb_info->device,
-                                            MKDEV(FB_MAJOR, i), NULL,
-                                            "fb%d", i);
+       fb_info->dev = device_create(fb_class, fb_info->device,
+                                    MKDEV(FB_MAJOR, i), NULL, "fb%d", i);
        if (IS_ERR(fb_info->dev)) {
                /* Not fatal */
                printk(KERN_WARNING "Unable to create device for framebuffer %d; errno = %ld\n", i, PTR_ERR(fb_info->dev));