drivers: can: Remove per instance Kconfig symbols

All users of per instance CAN symbols are removed so we can remove them.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-05-05 09:41:45 -05:00 committed by Ioannis Glaropoulos
commit fbb1de6aac
2 changed files with 0 additions and 21 deletions

View file

@ -56,23 +56,6 @@ config CAN_AUTO_BUS_OFF_RECOVERY
recessive bits). When this option is enabled, the recovery API is not
available.
config CAN_0
bool "Enable CAN 0"
help
Enable CAN controller 0
config CAN_1
bool "Enable CAN 1"
help
Enable CAN controller 1
config CAN_2
bool "Enable CAN 2"
depends on SOC_SERIES_STM32F4X
help
Enable CAN controller 2 on the STM32F4 series of processors.
(Tested on the STM32F4 series, may also work on F7, F1, F2 and L4)
source "drivers/can/Kconfig.stm32"
source "drivers/can/Kconfig.mcux"
source "drivers/can/Kconfig.mcp2515"

View file

@ -271,8 +271,6 @@ static int can_loopback_init(struct device *dev)
return 0;
}
#ifdef CONFIG_CAN_1
static struct can_loopback_data can_loopback_dev_data_1;
DEVICE_AND_API_INIT(can_loopback_1, CONFIG_CAN_LOOPBACK_DEV_NAME,
@ -314,5 +312,3 @@ NET_DEVICE_INIT(socket_can_loopback_1, SOCKET_CAN_NAME_1, socket_can_init_1,
CANBUS_RAW_L2, NET_L2_GET_CTX_TYPE(CANBUS_RAW_L2), CAN_MTU);
#endif /* CONFIG_NET_SOCKETS_CAN */
#endif /*CONFIG_CAN_1*/