Skip to content

Commit 3fcce13

Browse files
Enric Balletbo i Serramarckleinebudde
authored andcommitted
can: tcan4x5x: replace depends on REGMAP_SPI with depends on SPI
regmap is a library function that gets selected by drivers that need it. No driver modules should depend on it. Instead depends on SPI and select REGMAP_SPI. Depending on REGMAP_SPI makes this driver only build if another driver already selected REGMAP_SPI, as the symbol can't be selected through the menu kernel configuration. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Link: http://lore.kernel.org/r/20200413141013.506613-1-enric.balletbo@collabora.com Reviewed-by: Dan Murphy <dmurphy@ti.com> Fixes: 5443c22 ("can: tcan4x5x: Add tcan4x5x driver to the kernel") Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
1 parent b7ee5bc commit 3fcce13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/can/m_can/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ config CAN_M_CAN_PLATFORM
1616

1717
config CAN_M_CAN_TCAN4X5X
1818
depends on CAN_M_CAN
19-
depends on REGMAP_SPI
19+
depends on SPI
20+
select REGMAP_SPI
2021
tristate "TCAN4X5X M_CAN device"
2122
help
2223
Say Y here if you want support for Texas Instruments TCAN4x5x

0 commit comments

Comments
 (0)