staging: mt7621-spi: remove unused lock.
authorNeilBrown <neil@brown.name>
Fri, 4 May 2018 04:58:35 +0000 (14:58 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 02:09:23 +0000 (19:09 -0700)
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>
drivers/staging/mt7621-spi/spi-mt7621.c

index d9b55d2059b0008d5c930e7469b9000f5108b64b..37f299080410b888078148a106446c800605215c 100644 (file)
@@ -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);