diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-05-26 12:05:40 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-07-01 09:15:36 -0400 |
commit | c15a6ef6ea3ff06df2d532d314f85da48cb067e8 (patch) | |
tree | 45c8d47e9ddb5a5ee8a3326f2dfdf047dd33ae96 /drivers | |
parent | 92d2fd619d143b9559c1d6bca10162da4c1c2d34 (diff) |
dmaengine: PL08x: remove redundant spinlock
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/amba-pl08x.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index f3ab004509ba..9c5bae6f85b5 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c | |||
@@ -146,7 +146,6 @@ struct pl08x_driver_data { | |||
146 | int pool_ctr; | 146 | int pool_ctr; |
147 | u8 lli_buses; | 147 | u8 lli_buses; |
148 | u8 mem_buses; | 148 | u8 mem_buses; |
149 | spinlock_t lock; | ||
150 | }; | 149 | }; |
151 | 150 | ||
152 | /* | 151 | /* |
@@ -1897,8 +1896,6 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id) | |||
1897 | goto out_no_lli_pool; | 1896 | goto out_no_lli_pool; |
1898 | } | 1897 | } |
1899 | 1898 | ||
1900 | spin_lock_init(&pl08x->lock); | ||
1901 | |||
1902 | pl08x->base = ioremap(adev->res.start, resource_size(&adev->res)); | 1899 | pl08x->base = ioremap(adev->res.start, resource_size(&adev->res)); |
1903 | if (!pl08x->base) { | 1900 | if (!pl08x->base) { |
1904 | ret = -ENOMEM; | 1901 | ret = -ENOMEM; |