>/usr/local/src/linvdr-kernel-2.6.20-rc6/v4l-dvb-250107/v4l/ivtv-driver.c:645:65:
>                                             error: macro "INIT_WORK"
> passed 3 arguments, but takes just 2

I found a 2.6.20-patch for a similar case in the v4l-dvb-hg for another driver 
and fixed it like this:
(ivtv-driver.c around line 643

        itv->yuv_info.work_queues = create_workqueue("ivtv_yuv");
        if (itv->yuv_info.work_queues == NULL) {
                IVTV_ERR("Could not create YUV workqueue\n");
                destroy_workqueue(itv->vbi.work_queues);
                return -1;
        }
        #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
        INIT_WORK(&itv->vbi.work_queue, vbi_work_handler, itv);
        #else
        INIT_WORK(&itv->vbi.work_queue, vbi_work_handler);
        #endif
        #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
        INIT_WORK(&itv->yuv_info.work_queue, ivtv_yuv_work_handler, itv);
        #else
        INIT_WORK(&itv->yuv_info.work_queue, ivtv_yuv_work_handler);
        #endif

Hm, I guess it could have been made also with only one #if ... 



  
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to