Commit 66fbebb6 authored by NeilBrown's avatar NeilBrown Committed by Greg Kroah-Hartman

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: default avatarNeilBrown <neil@brown.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 61749d18
...@@ -65,7 +65,6 @@ struct mt7621_spi { ...@@ -65,7 +65,6 @@ struct mt7621_spi {
unsigned int sys_freq; unsigned int sys_freq;
unsigned int speed; unsigned int speed;
struct clk *clk; struct clk *clk;
spinlock_t lock;
struct mt7621_spi_ops *ops; struct mt7621_spi_ops *ops;
}; };
...@@ -395,7 +394,6 @@ static int mt7621_spi_probe(struct platform_device *pdev) ...@@ -395,7 +394,6 @@ static int mt7621_spi_probe(struct platform_device *pdev)
const struct of_device_id *match; const struct of_device_id *match;
struct spi_master *master; struct spi_master *master;
struct mt7621_spi *rs; struct mt7621_spi *rs;
unsigned long flags;
void __iomem *base; void __iomem *base;
struct resource *r; struct resource *r;
int status = 0; int status = 0;
...@@ -447,7 +445,6 @@ static int mt7621_spi_probe(struct platform_device *pdev) ...@@ -447,7 +445,6 @@ static int mt7621_spi_probe(struct platform_device *pdev)
rs->sys_freq = clk_get_rate(rs->clk); rs->sys_freq = clk_get_rate(rs->clk);
rs->ops = ops; rs->ops = ops;
dev_info(&pdev->dev, "sys_freq: %u\n", rs->sys_freq); dev_info(&pdev->dev, "sys_freq: %u\n", rs->sys_freq);
spin_lock_irqsave(&rs->lock, flags);
device_reset(&pdev->dev); device_reset(&pdev->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment