summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2019-08-16 18:44:04 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2019-08-20 13:41:25 +0200
commit65668b32695652e81c86671f075ed45f9efcf0d7 (patch)
treeb7ea823b97e115f497d4e4f6be9ddc89046a3905 /drivers/net/can
parent653ee35ce6d58261ef507cb270a5bd534813db8a (diff)
downloadblackbird-op-linux-65668b32695652e81c86671f075ed45f9efcf0d7.tar.gz
blackbird-op-linux-65668b32695652e81c86671f075ed45f9efcf0d7.zip
can: tcan4x5x: remove unused struct tcan4x5x_priv::tcan4x5x_lock
The mutex struct tcan4x5x_priv::tcan4x5x_lock is unused in the driver, so this patch removes the variable from the driver. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/m_can/tcan4x5x.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/can/m_can/tcan4x5x.c b/drivers/net/can/m_can/tcan4x5x.c
index b115b2e5333f..57b2a69a60eb 100644
--- a/drivers/net/can/m_can/tcan4x5x.c
+++ b/drivers/net/can/m_can/tcan4x5x.c
@@ -113,7 +113,6 @@
struct tcan4x5x_priv {
struct regmap *regmap;
struct spi_device *spi;
- struct mutex tcan4x5x_lock; /* SPI device lock */
struct m_can_classdev *mcan_dev;
@@ -466,8 +465,6 @@ static int tcan4x5x_can_probe(struct spi_device *spi)
priv->regmap = devm_regmap_init(&spi->dev, &tcan4x5x_bus,
&spi->dev, &tcan4x5x_regmap);
- mutex_init(&priv->tcan4x5x_lock);
-
tcan4x5x_power_enable(priv->power, 1);
ret = m_can_class_register(mcan_class);
OpenPOWER on IntegriCloud