drm/usb: bind driver to correct device
authorDave Airlie <airlied@redhat.com>
Thu, 7 Feb 2013 00:10:04 +0000 (10:10 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Feb 2013 02:37:41 +0000 (12:37 +1000)
While looking at plymouth on udl I noticed that plymouth was trying
to use its fb plugin not its drm one, it was trying to drmOpen a driver called
usb not udl, noticed that we actually had out driver pointing at the wrong
device.

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_usb.c

index 3cec30611417578591f165f61eb6e97c29f4c7a8..34a156f0c336cfb17e71bf68ac8f0d7c3c2d5a72 100644 (file)
@@ -18,7 +18,7 @@ int drm_get_usb_dev(struct usb_interface *interface,
 
        usbdev = interface_to_usbdev(interface);
        dev->usbdev = usbdev;
-       dev->dev = &usbdev->dev;
+       dev->dev = &interface->dev;
 
        mutex_lock(&drm_global_mutex);