drivers: can: stm32: Cleanup Kconfig enablement

Follow the pattern we have for other peripherals in that if the driver
class (CAN) is enabled than enable the driver for that class
(CAN_STM32).  Also have the STM32 CAN driver depend on being on a STM32
SoC.

Remove setting of CONFIG_CAN_STM32 in any .conf files as it will get set
of CONFIG_CAN is set/enabled.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-02-24 08:28:17 -06:00 committed by Kumar Gala
commit bb6b1918b2
6 changed files with 8 additions and 7 deletions

View file

@ -86,4 +86,11 @@ config COUNTER_RTC_STM32
endif # COUNTER
if CAN
config CAN_STM32
default y
endif
endif # SOC_FAMILY_STM32