Skip to contentSkip to conversation

Remove LINUX_VERSION_CODE check in pwc/pwc-if.c

PATCH In review Eric Sesterhenn / snakebyte 2 participants 2 messages Jan 4, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Remove LINUX_VERSION_CODE check in pwc/pwc-if.c

hi,

this patch removes the LINUX_VERSION check in
drivers/usb/media/pwc/pwc-if.c

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

#1 lore raw
Quoted 6 lines · Eric Sesterhenn / snakebyte

hi,

this patch removes the LINUX_VERSION check in
drivers/usb/media/pwc/pwc-if.c

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