OSDN Git Service

media: coda: drop unused irqlock
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 6 Nov 2019 11:38:36 +0000 (12:38 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 9 Nov 2019 08:10:42 +0000 (09:10 +0100)
The irqlock spinlock has been unused from the start. Remove it.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/coda/coda-common.c
drivers/media/platform/coda/coda.h

index 287dc16..5a38808 100644 (file)
@@ -2960,8 +2960,6 @@ static int coda_probe(struct platform_device *pdev)
        else
                return -EINVAL;
 
-       spin_lock_init(&dev->irqlock);
-
        dev->dev = &pdev->dev;
        dev->clk_per = devm_clk_get(&pdev->dev, "per");
        if (IS_ERR(dev->clk_per)) {
index 848bf1d..9f22614 100644 (file)
@@ -86,7 +86,6 @@ struct coda_dev {
        struct gen_pool         *iram_pool;
        struct coda_aux_buf     iram;
 
-       spinlock_t              irqlock;
        struct mutex            dev_mutex;
        struct mutex            coda_mutex;
        struct workqueue_struct *workqueue;