diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2010-05-03 13:07:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:39 -0400 |
commit | 9ff68c7ad8910426495be36e2b568ac623adc226 (patch) | |
tree | f4239a4303f225137f0cbc2722ab7a2c7edd390b /drivers/usb/serial/Kconfig | |
parent | 63b917678fe6d63e633462b5be5a309511bcf3ca (diff) |
USB: usbserial: fix mos7720 dependencies
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>
Diffstat (limited to 'drivers/usb/serial/Kconfig')
-rw-r--r-- | drivers/usb/serial/Kconfig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/serial/Kconfig b/drivers/usb/serial/Kconfig index a0b2247eeaa1..bd8aab0ef1cf 100644 --- a/drivers/usb/serial/Kconfig +++ b/drivers/usb/serial/Kconfig | |||
@@ -425,16 +425,15 @@ config USB_SERIAL_MOS7720 | |||
425 | To compile this driver as a module, choose M here: the | 425 | To compile this driver as a module, choose M here: the |
426 | module will be called mos7720. | 426 | module will be called mos7720. |
427 | 427 | ||
428 | if USB_SERIAL_MOS7720 | ||
429 | config USB_SERIAL_MOS7715_PARPORT | 428 | config USB_SERIAL_MOS7715_PARPORT |
430 | bool "Support for parallel port on the Moschip 7715" | 429 | bool "Support for parallel port on the Moschip 7715" |
430 | depends on USB_SERIAL_MOS7720 | ||
431 | depends on PARPORT=y || PARPORT=USB_SERIAL_MOS7720 | ||
431 | select PARPORT_NOT_PC | 432 | select PARPORT_NOT_PC |
432 | depends on PARPORT | ||
433 | ---help--- | 433 | ---help--- |
434 | Say Y if you have a Moschip 7715 device and would like to use | 434 | Say Y if you have a Moschip 7715 device and would like to use |
435 | the parallel port it provides. The port will register with | 435 | the parallel port it provides. The port will register with |
436 | the parport subsystem as a low-level driver. | 436 | the parport subsystem as a low-level driver. |
437 | endif | ||
438 | 437 | ||
439 | config USB_SERIAL_MOS7840 | 438 | config USB_SERIAL_MOS7840 |
440 | tristate "USB Moschip 7840/7820 USB Serial Driver" | 439 | tristate "USB Moschip 7840/7820 USB Serial Driver" |