Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=df19434cc268e207d1beb4dc7be3420888faef09
Commit:     df19434cc268e207d1beb4dc7be3420888faef09
Parent:     cf4d5f1d50e44d36d459344da3c8f226b3933aeb
Author:     Jan Engelhardt <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 17 04:04:20 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Jul 17 10:23:05 2007 -0700

    Use menuconfig objects: ISDN: CONFIG_ISDN_CAPI
    
    Transform "depends on" into a simpler if-endif block style dependency.
    
    Signed-off-by: Jan Engelhardt <[EMAIL PROTECTED]>
    Cc: Karsten Keil <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/isdn/Kconfig                |    4 ++++
 drivers/isdn/capi/Kconfig           |    7 ++-----
 drivers/isdn/hardware/Kconfig       |    1 -
 drivers/isdn/hardware/avm/Kconfig   |   13 ++++++-------
 drivers/isdn/hardware/eicon/Kconfig |    3 +--
 5 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/drivers/isdn/Kconfig b/drivers/isdn/Kconfig
index a3c9a03..cf906c8 100644
--- a/drivers/isdn/Kconfig
+++ b/drivers/isdn/Kconfig
@@ -57,8 +57,12 @@ config ISDN_CAPI
          hardware, see <http://www.capi.org/>.  This is needed for AVM's set
          of active ISDN controllers like B1, T1, M1.
 
+if ISDN_CAPI
+
 source "drivers/isdn/capi/Kconfig"
 
 source "drivers/isdn/hardware/Kconfig"
 
+endif # ISDN_CAPI
+
 endif # ISDN
diff --git a/drivers/isdn/capi/Kconfig b/drivers/isdn/capi/Kconfig
index c92f9d7..e1afd60 100644
--- a/drivers/isdn/capi/Kconfig
+++ b/drivers/isdn/capi/Kconfig
@@ -3,7 +3,6 @@
 #
 config ISDN_DRV_AVMB1_VERBOSE_REASON
        bool "Verbose reason code reporting"
-       depends on ISDN_CAPI
        default y
        help
          If you say Y here, the CAPI drivers will give verbose reasons for
@@ -12,7 +11,6 @@ config ISDN_DRV_AVMB1_VERBOSE_REASON
 
 config CAPI_TRACE
        bool "CAPI trace support"
-       depends on ISDN_CAPI
        default y
        help
          If you say Y here, the kernelcapi driver can make verbose traces
@@ -23,7 +21,7 @@ config CAPI_TRACE
 
 config ISDN_CAPI_MIDDLEWARE
        bool "CAPI2.0 Middleware support (EXPERIMENTAL)"
-       depends on ISDN_CAPI && EXPERIMENTAL
+       depends on EXPERIMENTAL
        help
          This option will enhance the capabilities of the /dev/capi20
          interface.  It will provide a means of moving a data connection,
@@ -33,7 +31,6 @@ config ISDN_CAPI_MIDDLEWARE
 
 config ISDN_CAPI_CAPI20
        tristate "CAPI2.0 /dev/capi support"
-       depends on ISDN_CAPI
        help
          This option will provide the CAPI 2.0 interface to userspace
          applications via /dev/capi20. Applications should use the
@@ -56,7 +53,7 @@ config ISDN_CAPI_CAPIFS
 
 config ISDN_CAPI_CAPIDRV
        tristate "CAPI2.0 capidrv interface support"
-       depends on ISDN_CAPI && ISDN_I4L
+       depends on ISDN_I4L
        help
          This option provides the glue code to hook up CAPI driven cards to
          the legacy isdn4linux link layer.  If you have a card which is
diff --git a/drivers/isdn/hardware/Kconfig b/drivers/isdn/hardware/Kconfig
index dfe7fec..30d028d 100644
--- a/drivers/isdn/hardware/Kconfig
+++ b/drivers/isdn/hardware/Kconfig
@@ -2,7 +2,6 @@
 # ISDN hardware drivers
 #
 comment "CAPI hardware drivers"
-       depends on ISDN_CAPI
 
 source "drivers/isdn/hardware/avm/Kconfig"
 
diff --git a/drivers/isdn/hardware/avm/Kconfig 
b/drivers/isdn/hardware/avm/Kconfig
index 8ffdb4f..fe6c67c 100644
--- a/drivers/isdn/hardware/avm/Kconfig
+++ b/drivers/isdn/hardware/avm/Kconfig
@@ -3,7 +3,6 @@
 #
 
 menu "Active AVM cards"
-       depends on ISDN_CAPI!=n
 
 config CAPI_AVM
        bool "Support AVM cards"
@@ -12,13 +11,13 @@ config CAPI_AVM
 
 config ISDN_DRV_AVMB1_B1ISA
        tristate "AVM B1 ISA support"
-       depends on CAPI_AVM && ISDN_CAPI && ISA
+       depends on CAPI_AVM && ISA
        help
          Enable support for the ISA version of the AVM B1 card.
 
 config ISDN_DRV_AVMB1_B1PCI
        tristate "AVM B1 PCI support"
-       depends on CAPI_AVM && ISDN_CAPI && PCI
+       depends on CAPI_AVM && PCI
        help
          Enable support for the PCI version of the AVM B1 card.
 
@@ -30,14 +29,14 @@ config ISDN_DRV_AVMB1_B1PCIV4
 
 config ISDN_DRV_AVMB1_T1ISA
        tristate "AVM T1/T1-B ISA support"
-       depends on CAPI_AVM && ISDN_CAPI && ISA
+       depends on CAPI_AVM && ISA
        help
          Enable support for the AVM T1 T1B card.
          Note: This is a PRI card and handle 30 B-channels.
 
 config ISDN_DRV_AVMB1_B1PCMCIA
        tristate "AVM B1/M1/M2 PCMCIA support"
-       depends on CAPI_AVM && ISDN_CAPI
+       depends on CAPI_AVM
        help
          Enable support for the PCMCIA version of the AVM B1 card.
 
@@ -50,14 +49,14 @@ config ISDN_DRV_AVMB1_AVM_CS
 
 config ISDN_DRV_AVMB1_T1PCI
        tristate "AVM T1/T1-B PCI support"
-       depends on CAPI_AVM && ISDN_CAPI && PCI
+       depends on CAPI_AVM && PCI
        help
          Enable support for the AVM T1 T1B card.
          Note: This is a PRI card and handle 30 B-channels.
 
 config ISDN_DRV_AVMB1_C4
        tristate "AVM C4/C2 support"
-       depends on CAPI_AVM && ISDN_CAPI && PCI
+       depends on CAPI_AVM && PCI
        help
          Enable support for the AVM C4/C2 PCI cards.
          These cards handle 4/2 BRI ISDN lines (8/4 channels).
diff --git a/drivers/isdn/hardware/eicon/Kconfig 
b/drivers/isdn/hardware/eicon/Kconfig
index fbfae88..a319783 100644
--- a/drivers/isdn/hardware/eicon/Kconfig
+++ b/drivers/isdn/hardware/eicon/Kconfig
@@ -3,7 +3,6 @@
 #
 
 menu "Active Eicon DIVA Server cards"
-       depends on ISDN_CAPI!=n
 
 config CAPI_EICON
        bool "Support Eicon cards"
@@ -32,7 +31,7 @@ config ISDN_DIVAS_PRIPCI
 
 config ISDN_DIVAS_DIVACAPI
        tristate "DIVA CAPI2.0 interface support"
-       depends on ISDN_DIVAS && ISDN_CAPI
+       depends on ISDN_DIVAS
        help
          You need this to provide the CAPI interface
          for DIVA Server cards.
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to