Skip to content

Commit

Permalink
dmaengine: PL08x: remove redundant spinlock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King committed Jul 1, 2012
1 parent 92d2fd6 commit c15a6ef
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/dma/amba-pl08x.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ struct pl08x_driver_data {
int pool_ctr;
u8 lli_buses;
u8 mem_buses;
spinlock_t lock;
};

/*
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c15a6ef

Please sign in to comment.