Introduce pet-projects dir
[lcapit-junk-code.git] / linux-kernel / PATCHES / serial-core-port-V0 / 0004-usbserial-Disables-generic-code.patch
blob57ad396dd3ffb7c8e43dacda2555430dd6824b62
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
10 missing work.
12 Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
13 ---
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);
25 +#if 0
27 +FIXME: Generic code not ported to the Serial Core API.
29 #define set_to_generic_if_null(type, function) \
30 do { \
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);
36 +#endif
38 int usb_serial_register(struct usb_serial_driver *driver)
40 int retval;
42 +#if 0
43 fixup_generic(driver);
44 +#endif
46 if (!driver->description)
47 driver->description = driver->driver.name;
48 --
49 1.3.3.g0825d