[patch] simplify the Config.in for CONFIG_PARPORT_PC_PCMCIA

From: Adrian Bunk (bunk@fs.tum.de)
Date: Mon Oct 07 2002 - 07:42:30 EDT

  • Next message: Philip Blundell: "[PARPORT] [Fwd: BOUNCE linux-parport@gear.torque.net: Non-member submission from [Adrian Bunk <bunk@fs.tum.de>]]"

    Hi,

    the current Config.in code for CONFIG_PARPORT_PC_PCMCIA in both
    2.4.20-pre9 and 2.5.40 has the disadvantage that "make xconfig" shows two
    entries for this option (it's harmless since at most one of them is
    selectable at any time). The patch below fixes this. It does an
    semantically equivalent transformation with the positive side effect that
    it's now more simple.

    --- linux/drivers/parport/Config.in.old 2002-10-07 13:21:26.000000000 +0200
    +++ linux/drivers/parport/Config.in 2002-10-07 13:35:31.000000000 +0200
    @@ -24,13 +24,7 @@
              bool ' Use FIFO/DMA if available (EXPERIMENTAL)' CONFIG_PARPORT_PC_FIFO
              bool ' SuperIO chipset support (EXPERIMENTAL)' CONFIG_PARPORT_PC_SUPERIO
           fi
    - if [ "$CONFIG_HOTPLUG" = "y" -a "$CONFIG_PCMCIA" != "n" ]; then
    - if [ "$CONFIG_PARPORT_PC" = "y" ]; then
    - dep_tristate ' Support for PCMCIA management for PC-style ports' CONFIG_PARPORT_PC_PCMCIA $CONFIG_PCMCIA
    - else
    - dep_tristate ' Support for PCMCIA management for PC-style ports' CONFIG_PARPORT_PC_PCMCIA $CONFIG_PARPORT_PC
    - fi
    - fi
    + dep_tristate ' Support for PCMCIA management for PC-style ports' CONFIG_PARPORT_PC_PCMCIA $CONFIG_HOTPLUG $CONFIG_PCMCIA $CONFIG_PARPORT_PC
        fi
        if [ "$CONFIG_ARM" = "y" ]; then
           dep_tristate ' Archimedes hardware' CONFIG_PARPORT_ARC $CONFIG_PARPORT

    Please apply
    Adrian

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Tue Oct 08 2002 - 08:59:14 EDT