summaryrefslogtreecommitdiffstats
path: root/drivers/staging/mt7621-spi
diff options
context:
space:
mode:
authorNeilBrown <neil@brown.name>2018-05-04 14:58:35 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-06 19:09:23 -0700
commit66fbebb631da6521e4b820864b95af9b8b7744ea (patch)
tree0933b0aa032fcff72678971db6e8122b94806ec5 /drivers/staging/mt7621-spi
parent61749d183e1d33d785ee1db11ba42c5b88fd947c (diff)
downloadlinux-66fbebb631da6521e4b820864b95af9b8b7744ea.tar.bz2
staging: mt7621-spi: remove unused lock.
This lock is never initialized, locked once, and never unlocked. Clearly it is pointless - so remove it. Signed-off-by: NeilBrown <neil@brown.name> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-spi')
-rw-r--r--drivers/staging/mt7621-spi/spi-mt7621.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c
index d9b55d2059b0..37f299080410 100644
--- a/drivers/staging/mt7621-spi/spi-mt7621.c
+++ b/drivers/staging/mt7621-spi/spi-mt7621.c
@@ -65,7 +65,6 @@ struct mt7621_spi {
unsigned int sys_freq;
unsigned int speed;
struct clk *clk;
- spinlock_t lock;
struct mt7621_spi_ops *ops;
};
@@ -395,7 +394,6 @@ static int mt7621_spi_probe(struct platform_device *pdev)
const struct of_device_id *match;
struct spi_master *master;
struct mt7621_spi *rs;
- unsigned long flags;
void __iomem *base;
struct resource *r;
int status = 0;
@@ -447,7 +445,6 @@ static int mt7621_spi_probe(struct platform_device *pdev)
rs->sys_freq = clk_get_rate(rs->clk);
rs->ops = ops;
dev_info(&pdev->dev, "sys_freq: %u\n", rs->sys_freq);
- spin_lock_irqsave(&rs->lock, flags);
device_reset(&pdev->dev);