]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
can: tcan4x5x: replace depends on REGMAP_SPI with depends on SPI
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 13 Apr 2020 14:10:13 +0000 (16:10 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Jan 2021 13:24:18 +0000 (14:24 +0100)
commit6889db6f3ba4b4f91c7b7dbdc06125fc7d7ae93c
treea8757ddfb504738f6805d199b0606397c8ea571c
parentf57a239c69a92e1df26033f883ba7b50d124634c
can: tcan4x5x: replace depends on REGMAP_SPI with depends on SPI

BugLink: https://bugs.launchpad.net/bugs/1908561
[ Upstream commit 3fcce133f0d9a50d3a23f8e2bc950197b4e03900 ]

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: 5443c226ba91 ("can: tcan4x5x: Add tcan4x5x driver to the kernel")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
drivers/net/can/m_can/Kconfig