]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/usb: bind driver to correct device
authorDave Airlie <airlied@redhat.com>
Thu, 7 Feb 2013 00:10:04 +0000 (10:10 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 14:59:03 +0000 (06:59 -0800)
commit 9f23de52b64f7fb801fd76f3dd8651a0dc89187b upstream.

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.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/drm_usb.c

index 37c9a523dd1c6f0c8391766023e43421b36ec57b..767782a96c3a1f9e9fcfd09c2f027fe26c86f33b 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);