PDA

View Full Version : Problem while initializing the structure



awais
February 4th, 2006, 06:20 PM
I have a problem while initializing the structure. The program containing the structure is given below.
When I complie this program like this
gcc -c UsbDrv.c
It then gives an error like this
the structure "generic_usb_id_table" is not complete


#define
#define USB_VENDOR_ID 0x22FF
#define USB_PRODUCT_ID_1 0x1111
#define USB_PRODUCT_ID_2 0x2222
static struct usb_device_id generic_usb_id_table [] =
{
{
USB_DEVICE(USB_VENDOR_ID,USB_PRODUCT_ID_1)
},
{
USB_DEVICE(USB_VENDOR_ID,USB_PRODUCT_ID_2)
}
{
}
};
MODULE_DEVICE_TABLE (usb, generic_usb_id_table);