kref_init(&dev->kref); /* matching kref_put in usb .disconnect fn */
dev->udev = usbdev;
- dev->gdev = &usbdev->dev; /* our generic struct device * */
usb_set_intfdata(interface, dev);
pr_info("%s %s - serial #%s\n",
int i;
/* allocates framebuffer driver structure, not framebuffer memory */
- info = framebuffer_alloc(0, dev->gdev);
+ info = framebuffer_alloc(0, &dev->udev->dev);
if (!info) {
pr_err("framebuffer_alloc failed\n");
goto error;
usb_set_intfdata(interface, NULL);
dev->udev = NULL;
- dev->gdev = NULL;
/* if clients still have us open, will be freed on last close */
if (dev->fb_count == 0)