1 From 521fe0bc536434fe1902e9b18568845605951762 Mon Sep 17 00:00:00 2001
2 From: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
3 Date: Tue, 23 May 2006 23:29:55 -0300
4 Subject: [PATCH 4/11] usbserial: Disables generic code.
6 fixup_generic() will not compile when usbserial driver is ported to the
7 Serial Core API. We need to disable for now.
9 Yes, the #if/#endif are ugly, but it's a good way to be explicit about the
12 Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
14 drivers/usb/serial/usb-serial.c | 7 +++++++
15 1 files changed, 7 insertions(+), 0 deletions(-)
17 diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c
18 index b338c3f..4165035 100644
19 --- a/drivers/usb/serial/usb-serial.c
20 +++ b/drivers/usb/serial/usb-serial.c
21 @@ -1116,6 +1116,10 @@ static void __exit usb_serial_exit(void)
22 module_init(usb_serial_init);
23 module_exit(usb_serial_exit);
27 +FIXME: Generic code not ported to the Serial Core API.
29 #define set_to_generic_if_null(type, function) \
31 if (!type->function) { \
32 @@ -1136,12 +1140,15 @@ static void fixup_generic(struct usb_ser
33 set_to_generic_if_null(device, write_bulk_callback);
34 set_to_generic_if_null(device, shutdown);
38 int usb_serial_register(struct usb_serial_driver *driver)
43 fixup_generic(driver);
46 if (!driver->description)
47 driver->description = driver->driver.name;