]> Pileus Git - ~andy/linux/commitdiff
drivers/net: decouple ISA and ISA_DMA_API
authorArnd Bergmann <arnd@arndb.de>
Fri, 20 Apr 2012 10:56:16 +0000 (10:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 19:28:48 +0000 (15:28 -0400)
The two options are separate, and some platforms (e.g. arm pxa)
have ISA slots but no ISA dma controller, so they cannot build
drivers using the DMA API functions.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tokenring/Kconfig
drivers/net/tokenring/tms380tr.c

index 45550d42b368084799a18b8ff7ad47b6ce6e38f2..ef3bb1326e4fc1a177ebec93ac16ff15f509475c 100644 (file)
@@ -98,7 +98,7 @@ config 3C359
 
 config TMS380TR
        tristate "Generic TMS380 Token Ring ISA/PCI adapter support"
-       depends on PCI || ISA && ISA_DMA_API || MCA
+       depends on PCI || ISA || MCA
        select FW_LOADER
        ---help---
          This driver provides generic support for token ring adapters
@@ -137,7 +137,7 @@ config TMSPCI
 
 config SKISA
        tristate "SysKonnect TR4/16 ISA support"
-       depends on TMS380TR && ISA
+       depends on TMS380TR && ISA && ISA_DMA_API
        help
          This tms380 module supports SysKonnect TR4/16 ISA cards.
 
@@ -149,7 +149,7 @@ config SKISA
 
 config PROTEON
        tristate "Proteon ISA support"
-       depends on TMS380TR && ISA
+       depends on TMS380TR && ISA && ISA_DMA_API
        help
          This tms380 module supports Proteon ISA cards.
 
index be4813e0366c2fa1488bc9ceeb6cc62c43bd98ee..b5e0855e4b39836cf6bc2bb52a8e9d1e373dbdc9 100644 (file)
@@ -254,7 +254,7 @@ int tms380tr_open(struct net_device *dev)
 
        /* Reset the hardware here. Don't forget to set the station address. */
 
-#ifdef CONFIG_ISA
+#if defined(CONFIG_ISA) && defined(CONFIG_ISA_DMA_API)
        if(dev->dma > 0) 
        {
                unsigned long flags=claim_dma_lock();
@@ -1125,8 +1125,8 @@ int tms380tr_close(struct net_device *dev)
     
        del_timer(&tp->timer);
        tms380tr_disable_interrupts(dev);
-   
-#ifdef CONFIG_ISA
+
+#if defined(CONFIG_ISA) && defined(CONFIG_ISA_DMA_API)
        if(dev->dma > 0) 
        {
                unsigned long flags=claim_dma_lock();