diff --git a/fl2000_drv.c b/fl2000_drv.c index c940622..649247a 100644 --- a/fl2000_drv.c +++ b/fl2000_drv.c @@ -10,10 +10,10 @@ #define FL2000_USB_VENDOR 0x1D5C #define FL2000_USB_PRODUCT 0x2000 -#define FL2000_USB_INTERFACE(ifnum, table) \ +#define FL2000_USB_INTERFACE(ifnum, api_addr) \ { \ USB_DEVICE_INTERFACE_NUMBER(FL2000_USB_VENDOR, FL2000_USB_PRODUCT, ifnum), \ - .driver_info = (kernel_ulong_t)(table) \ + .driver_info = (kernel_ulong_t)(api_addr) \ } struct fl2000_if_api { @@ -83,9 +83,9 @@ static const struct fl2000_if_api fl2000_interrupt = { }; static const struct usb_device_id fl2000_id_table[] = { - FL2000_USB_INTERFACE(FL2000_USBIF_AVCONTROL, fl2000_avcontrol), - FL2000_USB_INTERFACE(FL2000_USBIF_STREAMING, fl2000_streaming), - FL2000_USB_INTERFACE(FL2000_USBIF_INTERRUPT, fl2000_interrupt), + FL2000_USB_INTERFACE(FL2000_USBIF_AVCONTROL, &fl2000_avcontrol), + FL2000_USB_INTERFACE(FL2000_USBIF_STREAMING, &fl2000_streaming), + FL2000_USB_INTERFACE(FL2000_USBIF_INTERRUPT, &fl2000_interrupt), {}, }; MODULE_DEVICE_TABLE(usb, fl2000_id_table);