udl: bind the framebuffer to the correct device.
authorDave Airlie <airlied@gmail.com>
Fri, 19 Apr 2013 01:01:55 +0000 (11:01 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 30 Apr 2013 23:45:21 +0000 (09:45 +1000)
This just moves the fb sysfs node beside the drm sysfs node which
I fixed before.

just noticed it in passing.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_fb.c

index 9f4be3d..dc0c065 100644 (file)
@@ -482,7 +482,7 @@ static int udlfb_create(struct drm_fb_helper *helper,
        struct udl_fbdev *ufbdev = (struct udl_fbdev *)helper;
        struct drm_device *dev = ufbdev->helper.dev;
        struct fb_info *info;
-       struct device *device = &dev->usbdev->dev;
+       struct device *device = dev->dev;
        struct drm_framebuffer *fb;
        struct drm_mode_fb_cmd2 mode_cmd;
        struct udl_gem_object *obj;