]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dmaengine: PL08x: remove redundant spinlock
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 May 2012 16:05:40 +0000 (17:05 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Jul 2012 13:15:36 +0000 (14:15 +0100)
The pl08x_driver_data spinlock is only ever initialized.  Nothing else
uses it.  Let's get rid of it.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/dma/amba-pl08x.c

index f3ab004509ba1fdca83ad61ff1b4813c29801476..9c5bae6f85b5e4eeb989f2a831cf22085330cf7a 100644 (file)
@@ -146,7 +146,6 @@ struct pl08x_driver_data {
        int pool_ctr;
        u8 lli_buses;
        u8 mem_buses;
-       spinlock_t lock;
 };
 
 /*
@@ -1897,8 +1896,6 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id)
                goto out_no_lli_pool;
        }
 
-       spin_lock_init(&pl08x->lock);
-
        pl08x->base = ioremap(adev->res.start, resource_size(&adev->res));
        if (!pl08x->base) {
                ret = -ENOMEM;