Hi, On Saturday 05 April 2008, ds ds wrote: > Hi, in uvc_status.c line 46, we have : > input->dev.parent = something... > "dev" is a pointer on "struct uvc_device" defined in > file uvcvideo.h line 593 > but no "parent" here... > I don't think "parent" is a C reserved word. > > Here is my output : > $ make > Building USB Video Class driver... > make[1]: Entering directory > `/usr/src/linux-2.6.17-16mdv' > > WARNING: Symbol version dump > /usr/src/linux-2.6.17-16mdv/Module.symvers is missing; > modules will have no dependencies and modversions. > > CC [M] /home/ds/tmp/uvc/trunk/uvc_driver.o > CC [M] /home/ds/tmp/uvc/trunk/uvc_status.o > /home/ds/tmp/uvc/trunk/uvc_status.c: In function > ‘uvc_input_init’: > /home/ds/tmp/uvc/trunk/uvc_status.c:46: error: request > for member ‘parent’ in something not a > structure or union > make[2]: *** [/home/ds/tmp/uvc/trunk/uvc_status.o] > Error 1 > make[1]: *** [_module_/home/ds/tmp/uvc/trunk] Error 2 > make[1]: Leaving directory > `/usr/src/linux-2.6.17-16mdv' > make: *** [uvcvideo] Error 2
Could you please test the attached patch and tell me if it helps ? Best regards, Laurent Pinchart
Index: uvc_status.c =================================================================== --- uvc_status.c (revision 198) +++ uvc_status.c (working copy) @@ -43,7 +43,11 @@ input->name = dev->name; input->phys = phys; usb_to_input_id(udev, &input->id); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22) input->dev.parent = &dev->intf->dev; +#else + input->cdev.dev = &dev->intf->dev; +#endif set_bit(EV_KEY, input->evbit); set_bit(BTN_0, input->keybit);
_______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
