3 #include <linux/module.h>
10 struct usb_device *usbdev;
19 usbdev = interface_to_usbdev(interface);
21 dev->dev = &usbdev->dev;
31 usb_set_intfdata(interface, dev);
40 if (dev->driver->load) {
41 ret = dev->driver->load(dev, 0);
48 &dev->primary->mode_group);
56 DRM_INFO(
"Initialized %s %d.%d.%d %s on minor %d\n",
57 driver->name, driver->major, driver->minor, driver->patchlevel,
58 driver->date, dev->primary->index);
85 struct drm_master *master)
90 static struct drm_bus drm_usb_bus = {
91 .bus_type = DRIVER_BUS_USB,
92 .get_irq = drm_usb_get_irq,
93 .get_name = drm_usb_get_name,
94 .set_busid = drm_usb_set_busid,
102 INIT_LIST_HEAD(&driver->device_list);
103 driver->kdriver.usb = udriver;
104 driver->bus = &drm_usb_bus;
106 res = usb_register(udriver);
112 struct usb_driver *udriver)