--- zzzz-none-000/linux-2.4.17/drivers/char/pcmcia/Config.in 2001-03-07 03:28:35.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/drivers/char/pcmcia/Config.in 2004-11-24 13:23:21.000000000 +0000 @@ -5,7 +5,13 @@ mainmenu_option next_comment comment 'PCMCIA character devices' -dep_tristate 'PCMCIA serial device support' CONFIG_PCMCIA_SERIAL_CS $CONFIG_SERIAL +if [ "$CONFIG_SERIAL" = "y" -o "$CONFIG_SERIAL_8250" = "y" ]; then + dep_tristate 'PCMCIA serial device support' CONFIG_PCMCIA_SERIAL_CS y +else + if [ "$CONFIG_SERIAL" = "m" -o "$CONFIG_SERIAL_8250" = "m" ]; then + dep_tristate 'PCMCIA serial device support' CONFIG_PCMCIA_SERIAL_CS m + fi +fi if [ "$CONFIG_PCMCIA_SERIAL_CS" = "y" ]; then define_bool CONFIG_PCMCIA_CHRDEV y fi