Lines Matching refs:intf
434 static int mdc800_usb_probe (struct usb_interface *intf, in mdc800_usb_probe() argument
439 struct usb_device *dev = interface_to_usbdev (intf); in mdc800_usb_probe()
443 dev_dbg(&intf->dev, "(%s) called.\n", __func__); in mdc800_usb_probe()
448 dev_warn(&intf->dev, "only one Mustek MDC800 is supported.\n"); in mdc800_usb_probe()
454 dev_err(&intf->dev, in mdc800_usb_probe()
458 intf_desc = intf->cur_altsetting; in mdc800_usb_probe()
467 dev_err(&intf->dev, "probe fails -> wrong Interface\n"); in mdc800_usb_probe()
488 dev_err(&intf->dev, "probe fails -> Wrong Endpoints.\n"); in mdc800_usb_probe()
494 dev_info(&intf->dev, "Found Mustek MDC800 on USB.\n"); in mdc800_usb_probe()
498 retval = usb_register_dev(intf, &mdc800_class); in mdc800_usb_probe()
500 dev_err(&intf->dev, "Not able to get a minor for this device.\n"); in mdc800_usb_probe()
544 usb_set_intfdata(intf, mdc800); in mdc800_usb_probe()
552 static void mdc800_usb_disconnect (struct usb_interface *intf) in mdc800_usb_disconnect() argument
554 struct mdc800_data* mdc800 = usb_get_intfdata(intf); in mdc800_usb_disconnect()
556 dev_dbg(&intf->dev, "(%s) called\n", __func__); in mdc800_usb_disconnect()
562 usb_deregister_dev(intf, &mdc800_class); in mdc800_usb_disconnect()
575 usb_set_intfdata(intf, NULL); in mdc800_usb_disconnect()
577 dev_info(&intf->dev, "Mustek MDC800 disconnected from USB.\n"); in mdc800_usb_disconnect()