can: flexcan: remove HAVE_CAN_FLEXCAN Kconfig symbol
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 15 May 2013 07:32:36 +0000 (09:32 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 3 Jun 2013 11:13:49 +0000 (13:13 +0200)
This patch removes the Kconfig symbol HAVE_CAN_FLEXCAN from arch/{arm,powerpc}
and allowing compilation unconditionally on all arm and powerpc platforms.

This brings a bigger compile time coverage and removes the following dependency
warning found by Arnd Bergmann:

    warning: (SOC_IMX28 && SOC_IMX25 && SOC_IMX35 && IMX_HAVE_PLATFORM_FLEXCAN &&
        SOC_IMX53 && SOC_IMX6Q) selects HAVE_CAN_FLEXCAN
    which has unmet direct dependencies (NET && CAN && CAN_DEV)

Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
arch/arm/mach-imx/Kconfig
arch/arm/mach-imx/devices/Kconfig
arch/arm/mach-mxs/Kconfig
arch/powerpc/Kconfig
drivers/net/can/Kconfig

index ba44328464f37c0cdce9eb9039fcfce8ad8dc743..af8e109953d1214fc6413f7614eaa2aa13ecfdde 100644 (file)
@@ -111,7 +111,6 @@ config SOC_IMX25
        select ARCH_MXC_IOMUX_V3
        select COMMON_CLK
        select CPU_ARM926T
-       select HAVE_CAN_FLEXCAN if CAN
        select MXC_AVIC
 
 config SOC_IMX27
@@ -137,7 +136,6 @@ config SOC_IMX35
        select ARCH_MXC_IOMUX_V3
        select COMMON_CLK
        select CPU_V6K
-       select HAVE_CAN_FLEXCAN if CAN
        select HAVE_EPIT
        select MXC_AVIC
        select SMP_ON_UP if SMP
@@ -776,7 +774,6 @@ comment "Device tree only"
 
 config SOC_IMX53
        bool "i.MX53 support"
-       select HAVE_CAN_FLEXCAN if CAN
        select HAVE_IMX_SRC
        select IMX_HAVE_PLATFORM_IMX2_WDT
        select PINCTRL
@@ -799,7 +796,6 @@ config SOC_IMX6Q
        select CPU_V7
        select HAVE_ARM_SCU if SMP
        select HAVE_ARM_TWD if LOCAL_TIMERS
-       select HAVE_CAN_FLEXCAN if CAN
        select HAVE_IMX_ANATOP
        select HAVE_IMX_GPC
        select HAVE_IMX_MMDC
index 3dd2b1b041d15dc8d4eaf7e8880644c435660888..68c74fb0373c63a1f47b97630cf90f70b2e59ee1 100644 (file)
@@ -4,7 +4,6 @@ config IMX_HAVE_PLATFORM_FEC
 
 config IMX_HAVE_PLATFORM_FLEXCAN
        bool
-       select HAVE_CAN_FLEXCAN if CAN
 
 config IMX_HAVE_PLATFORM_FSL_USB2_UDC
        bool
index 4dc2fbba0ecd1bc511e3369a9916a263420b02f9..ce6e7d606a7ce9cc1867e0e83263e93610e8445d 100644 (file)
@@ -11,7 +11,6 @@ config SOC_IMX28
        select ARM_AMBA
        select ARM_CPU_SUSPEND if PM
        select CPU_ARM926T
-       select HAVE_CAN_FLEXCAN if CAN
        select HAVE_PWM
        select PINCTRL_IMX28
 
index c33e3ad2c8fd52c9e0c31dfc272faf3d34902f37..7754c6b8c453602d890c47d41f005798a6e8b62d 100644 (file)
@@ -674,7 +674,6 @@ config SBUS
 
 config FSL_SOC
        bool
-       select HAVE_CAN_FLEXCAN if NET && CAN
 
 config FSL_PCI
        bool
index e456b70933c230abd7703ca3f6abed853679e5ef..3c069472eb8b6ddfc4f134209ccf92b51ac0ee84 100644 (file)
@@ -102,12 +102,9 @@ config CAN_JANZ_ICAN3
          This driver can also be built as a module. If so, the module will be
          called janz-ican3.ko.
 
-config HAVE_CAN_FLEXCAN
-       bool
-
 config CAN_FLEXCAN
        tristate "Support for Freescale FLEXCAN based chips"
-       depends on HAVE_CAN_FLEXCAN
+       depends on ARM || PPC
        ---help---
          Say Y here if you want to support for Freescale FlexCAN.