Remove LINUX_VERSION_CODE check in pwc/pwc-if.c
Subsystems (2)
PATCH 2/2 Remove LINUX_VERSION_CODE check in pwc/pwc-if.c
hi,
this patch removes the LINUX_VERSION check indrivers/usb/media/pwc/pwc-if.c
Signed-off-by Eric Sesterhenn <[email protected]>
drivers/usb/media/pwc/pwc-if.c renamed from drivers/usb/media/pwc/pwc-if.c.orig +1 -4
@@ -827,13 +827,10 @@ static int pwc_isoc_init(struct pwc_devi/* Get the current alternate interface, adjust packet size */ if (!udev->actconfig)return -EFAULT ; -#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,5 ) - idesc = &udev->actconfig->interface[0 ]->altsetting[pdev->valternate]; -#else + intf =usb_ifnum_to_if (udev,0 );if (intf) idesc =usb_altnum_to_altsetting (intf, pdev->valternate); -#endif if (!idesc)return -EFAULT ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 6 lines · Eric Sesterhenn / snakebyte
hi,
this patch removes the
LINUX_VERSIONcheck indrivers/usb/media/pwc/pwc-if.cSigned-off-by Eric Sesterhenn <[email protected]>
How about redoing this and take out the #include <linux/version.h> at the same time, as it should no longer be needed?
And do the same thing for the pwc-ctrl.c file perhaps?
thanks,
greg k-h
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors