Commit 4c4726fa authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

can: flexcan: remove HAVE_CAN_FLEXCAN Kconfig symbol

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: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 588e7a8e
...@@ -111,7 +111,6 @@ config SOC_IMX25 ...@@ -111,7 +111,6 @@ config SOC_IMX25
select ARCH_MXC_IOMUX_V3 select ARCH_MXC_IOMUX_V3
select COMMON_CLK select COMMON_CLK
select CPU_ARM926T select CPU_ARM926T
select HAVE_CAN_FLEXCAN if CAN
select MXC_AVIC select MXC_AVIC
config SOC_IMX27 config SOC_IMX27
...@@ -137,7 +136,6 @@ config SOC_IMX35 ...@@ -137,7 +136,6 @@ config SOC_IMX35
select ARCH_MXC_IOMUX_V3 select ARCH_MXC_IOMUX_V3
select COMMON_CLK select COMMON_CLK
select CPU_V6K select CPU_V6K
select HAVE_CAN_FLEXCAN if CAN
select HAVE_EPIT select HAVE_EPIT
select MXC_AVIC select MXC_AVIC
select SMP_ON_UP if SMP select SMP_ON_UP if SMP
...@@ -776,7 +774,6 @@ comment "Device tree only" ...@@ -776,7 +774,6 @@ comment "Device tree only"
config SOC_IMX53 config SOC_IMX53
bool "i.MX53 support" bool "i.MX53 support"
select HAVE_CAN_FLEXCAN if CAN
select HAVE_IMX_SRC select HAVE_IMX_SRC
select IMX_HAVE_PLATFORM_IMX2_WDT select IMX_HAVE_PLATFORM_IMX2_WDT
select PINCTRL select PINCTRL
...@@ -799,7 +796,6 @@ config SOC_IMX6Q ...@@ -799,7 +796,6 @@ config SOC_IMX6Q
select CPU_V7 select CPU_V7
select HAVE_ARM_SCU if SMP select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_CAN_FLEXCAN if CAN
select HAVE_IMX_ANATOP select HAVE_IMX_ANATOP
select HAVE_IMX_GPC select HAVE_IMX_GPC
select HAVE_IMX_MMDC select HAVE_IMX_MMDC
......
...@@ -4,7 +4,6 @@ config IMX_HAVE_PLATFORM_FEC ...@@ -4,7 +4,6 @@ config IMX_HAVE_PLATFORM_FEC
config IMX_HAVE_PLATFORM_FLEXCAN config IMX_HAVE_PLATFORM_FLEXCAN
bool bool
select HAVE_CAN_FLEXCAN if CAN
config IMX_HAVE_PLATFORM_FSL_USB2_UDC config IMX_HAVE_PLATFORM_FSL_USB2_UDC
bool bool
......
...@@ -11,7 +11,6 @@ config SOC_IMX28 ...@@ -11,7 +11,6 @@ config SOC_IMX28
select ARM_AMBA select ARM_AMBA
select ARM_CPU_SUSPEND if PM select ARM_CPU_SUSPEND if PM
select CPU_ARM926T select CPU_ARM926T
select HAVE_CAN_FLEXCAN if CAN
select HAVE_PWM select HAVE_PWM
select PINCTRL_IMX28 select PINCTRL_IMX28
......
...@@ -674,7 +674,6 @@ config SBUS ...@@ -674,7 +674,6 @@ config SBUS
config FSL_SOC config FSL_SOC
bool bool
select HAVE_CAN_FLEXCAN if NET && CAN
config FSL_PCI config FSL_PCI
bool bool
......
...@@ -102,12 +102,9 @@ config CAN_JANZ_ICAN3 ...@@ -102,12 +102,9 @@ config CAN_JANZ_ICAN3
This driver can also be built as a module. If so, the module will be This driver can also be built as a module. If so, the module will be
called janz-ican3.ko. called janz-ican3.ko.
config HAVE_CAN_FLEXCAN
bool
config CAN_FLEXCAN config CAN_FLEXCAN
tristate "Support for Freescale FLEXCAN based chips" tristate "Support for Freescale FLEXCAN based chips"
depends on HAVE_CAN_FLEXCAN depends on ARM || PPC
---help--- ---help---
Say Y here if you want to support for Freescale FlexCAN. Say Y here if you want to support for Freescale FlexCAN.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment