From 4edf33c16d0fa9a7d51dfbf0e4cf1db2dd35cbc5 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Tue, 19 Apr 2022 10:31:02 +0200 Subject: [PATCH] sys/auto_init_mcp2515: fix auto_init --- sys/auto_init/can/auto_init_mcp2515.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/auto_init/can/auto_init_mcp2515.c b/sys/auto_init/can/auto_init_mcp2515.c index f7e892aa43..3bbf8c01c2 100644 --- a/sys/auto_init/can/auto_init_mcp2515.c +++ b/sys/auto_init/can/auto_init_mcp2515.c @@ -16,11 +16,10 @@ * @} */ -#ifdef MODULE_MCP2515 #include "can/device.h" #include "mcp2515_params.h" -#define CANDEV_MCP2515_NUMOF ((ARRAY_SIZE(candev_mcp2515_params) / ARRAY_SIZE(candev_params_t))) +#define CANDEV_MCP2515_NUMOF (ARRAY_SIZE(candev_mcp2515_params)) #ifndef CANDEV_MCP2515_STACKSIZE #define CANDEV_MCP2515_STACKSIZE (THREAD_STACKSIZE_DEFAULT + THREAD_EXTRA_STACKSIZE_PRINTF) @@ -55,6 +54,3 @@ void auto_init_can_mcp2515(void) { &candev_dev_mcp2515[i]); } } -#else -typedef int dont_be_pedantic; -#endif