diff options
| author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-03 10:54:37 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-03 10:54:37 -0700 |
| commit | 78b94d03868bb90fe39a6ae7b9dea3a7cb35e873 (patch) | |
| tree | c5bff90b741fae9b9eb7277b850e095650d2454a /usb | |
| parent | 23e48e5ae8a11dad6dd78ec410d5fc35dd819bb4 (diff) | |
| download | patches-78b94d03868bb90fe39a6ae7b9dea3a7cb35e873.tar.gz | |
usb build fix
Diffstat (limited to 'usb')
| -rw-r--r-- | usb/usb-usbserial-fix-mos7720-dependencies.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/usb/usb-usbserial-fix-mos7720-dependencies.patch b/usb/usb-usbserial-fix-mos7720-dependencies.patch new file mode 100644 index 00000000000000..d8a9856f52de53 --- /dev/null +++ b/usb/usb-usbserial-fix-mos7720-dependencies.patch @@ -0,0 +1,51 @@ +From randy.dunlap@oracle.com Mon May 3 10:52:58 2010 +From: Randy Dunlap <randy.dunlap@oracle.com> +Date: Mon, 3 May 2010 10:07:25 -0700 +Subject: USB: usbserial: fix mos7720 dependencies +To: Stephen Rothwell <sfr@canb.auug.org.au>, gregkh@suse.de +Message-ID: <20100503100725.c4006b32.randy.dunlap@oracle.com> + +From: Randy Dunlap <randy.dunlap@oracle.com> + +Fix mos7720 Kconfig dependencies. +When an enabled bool selects a tristate, the tristate becomes =y, +even if it should be limited to modular, so limit the bool kconfig +option to configs that will build cleanly. +Also change the if-block to a simple depends on. + +drivers/built-in.o: In function `mos7720_release': +mos7720.c:(.text+0xad432): undefined reference to `parport_remove_port' +drivers/built-in.o: In function `mos7715_parport_init': +mos7720.c:(.text+0xae197): undefined reference to `parport_register_port' +mos7720.c:(.text+0xae210): undefined reference to `parport_announce_port' +drivers/built-in.o:(.data+0x201c8): undefined reference to `parport_ieee1284_read_nibble' +drivers/built-in.o:(.data+0x201d0): undefined reference to `parport_ieee1284_read_byte' + +Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> +Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> + +--- + drivers/usb/serial/Kconfig | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +--- a/drivers/usb/serial/Kconfig ++++ b/drivers/usb/serial/Kconfig +@@ -425,16 +425,15 @@ config USB_SERIAL_MOS7720 + To compile this driver as a module, choose M here: the + module will be called mos7720. + +-if USB_SERIAL_MOS7720 + config USB_SERIAL_MOS7715_PARPORT + bool "Support for parallel port on the Moschip 7715" ++ depends on USB_SERIAL_MOS7720 ++ depends on PARPORT=y || PARPORT=USB_SERIAL_MOS7720 + select PARPORT_NOT_PC +- depends on PARPORT + ---help--- + Say Y if you have a Moschip 7715 device and would like to use + the parallel port it provides. The port will register with + the parport subsystem as a low-level driver. +-endif + + config USB_SERIAL_MOS7840 + tristate "USB Moschip 7840/7820 USB Serial Driver" |
