linux-mips
[Top] [All Lists]

[PATCH] MIPS: bcm47xx: Fix BCMA build failure

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] MIPS: bcm47xx: Fix BCMA build failure
From: Thierry Reding <thierry.reding@avionic-design.de>
Date: Wed, 16 Jan 2013 08:28:06 +0100
Cc: linux-mips@linux-mips.org
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Sender: linux-mips-bounce@linux-mips.org
Enabling the BCMA driver automatically selects BCMA_DRIVER_GPIO, which
in turn depends on GPIOLIB. GPIOLIB support is not enabled by default,
however, so Kconfig complains about it:

        warning: (BCM47XX_BCMA) selects BCMA_DRIVER_GPIO which has unmet direct 
dependencies (BCMA_POSSIBLE && BCMA && GPIOLIB)
        warning: (BCM47XX_SSB) selects SSB_DRIVER_GPIO which has unmet direct 
dependencies (SSB_POSSIBLE && SSB && GPIOLIB)
        warning: (BCM47XX_SSB) selects SSB_DRIVER_GPIO which has unmet direct 
dependencies (SSB_POSSIBLE && SSB && GPIOLIB)
        warning: (BCM47XX_BCMA) selects BCMA_DRIVER_GPIO which has unmet direct 
dependencies (BCMA_POSSIBLE && BCMA && GPIOLIB)

This patch fixes the issue by explicitly selecting GPIOLIB if
BCM47XX_BCMA is enabled.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
---
 arch/mips/bcm47xx/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/bcm47xx/Kconfig b/arch/mips/bcm47xx/Kconfig
index d7af29f..0f95b5e 100644
--- a/arch/mips/bcm47xx/Kconfig
+++ b/arch/mips/bcm47xx/Kconfig
@@ -19,6 +19,7 @@ config BCM47XX_SSB
 config BCM47XX_BCMA
        bool "BCMA Support for Broadcom BCM47XX"
        select SYS_HAS_CPU_MIPS32_R2
+       select GPIOLIB
        select BCMA
        select BCMA_HOST_SOC
        select BCMA_DRIVER_MIPS
-- 
1.8.1


<Prev in Thread] Current Thread [Next in Thread>