fixup_generic() will not compile when usbserial driver is ported to the Serial Core API. We need to disable for now.
Yes, the #if/#endif are ugly, but it's a good way to be explicit about the missing work. Signed-off-by: Luiz Fernando N. Capitulino <[EMAIL PROTECTED]> --- drivers/usb/serial/usb-serial.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index b338c3f..4165035 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c @@ -1116,6 +1116,10 @@ static void __exit usb_serial_exit(void) module_init(usb_serial_init); module_exit(usb_serial_exit); +#if 0 + +FIXME: Generic code not ported to the Serial Core API. + #define set_to_generic_if_null(type, function) \ do { \ if (!type->function) { \ @@ -1136,12 +1140,15 @@ static void fixup_generic(struct usb_ser set_to_generic_if_null(device, write_bulk_callback); set_to_generic_if_null(device, shutdown); } +#endif int usb_serial_register(struct usb_serial_driver *driver) { int retval; +#if 0 fixup_generic(driver); +#endif if (!driver->description) driver->description = driver->driver.name; -- 1.3.3.g0825d _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel