![]() | |||||||||||||
Messages in this thread |
Ok, do you have any other suggestion on how to make the driver compilable for both >= 2.4.20 and < 2.4.20? /Mikael -----Original Message----- From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Greg KH Sent: Wednesday, July 09, 2003 10:15 PM To: Linux Kernel Mailing List Subject: Re: CRIS architecture update > diff -Nru a/arch/cris/drivers/usb-host.c b/arch/cris/drivers/usb-host.c > --- a/arch/cris/drivers/usb-host.c Wed Jul 9 12:06:00 2003 > +++ b/arch/cris/drivers/usb-host.c Wed Jul 9 12:06:00 2003 > +#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 4, 20) > +typedef struct urb urb_t, *purb_t; > +typedef struct iso_packet_descriptor iso_packet_descriptor_t; typedef > +struct usb_ctrlrequest devrequest; #endif ICK ICK ICK! Please do not do this. These typedefs were removed for a reason! greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-03-22 13:46 [from the cache] ©2003-2008 | |||||||||||||