示例#1
0
文件: emi26.c 项目: 020gzh/linux
static int emi26_probe(struct usb_interface *intf, const struct usb_device_id *id)
{
	struct usb_device *dev = interface_to_usbdev(intf);

	dev_info(&intf->dev, "%s start\n", __func__);

	emi26_load_firmware(dev);

	/* do not return the driver context, let real audio driver do that */
	return -EIO;
}
static int emi26_probe(struct usb_interface *intf, const struct usb_device_id *id)
{
	struct usb_device *dev = interface_to_usbdev(intf);

	dev_info(&intf->dev, "%s start\n", __func__);

	emi26_load_firmware(dev);

	
	return -EIO;
}
示例#3
0
static void * emi26_probe(struct usb_device *dev, unsigned int if_num, const struct usb_device_id *id)
{
	printk(KERN_INFO "%s start", __FUNCTION__); 
	
	if((dev->descriptor.idVendor == EMI26_VENDOR_ID) && (dev->descriptor.idProduct == EMI26_PRODUCT_ID)) {
		emi26_load_firmware(dev);
	}
	
	/* do not return the driver context, let real audio driver do that */
	return 0;
}