diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2016-08-03 14:03:08 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-08-15 00:55:31 +0200 |
commit | 8d263be8716da67bd8746e266c1934cb9c9933cc (patch) | |
tree | bd21fe2aa1306986ca438dfe783043b93db243c8 /drivers | |
parent | 434f14e745442a4230a40cf47f84deac1028f64f (diff) | |
download | linux-stable-8d263be8716da67bd8746e266c1934cb9c9933cc.tar.gz linux-stable-8d263be8716da67bd8746e266c1934cb9c9933cc.tar.bz2 linux-stable-8d263be8716da67bd8746e266c1934cb9c9933cc.zip |
i2c: bcm-iproc: Use complete() instead of complete_all()
There is only one waiter for the completion, therefore there
is no need to use complete_all(). Let's make that clear by
using complete() instead of complete_all().
The usage pattern of the completion is:
bcm_iproc_i2c_xfer_single_msg()
reinit_completion()
...
(activate the transfer)
...
wait_for_completion_timeout()
Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Acked-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/busses/i2c-bcm-iproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-bcm-iproc.c b/drivers/i2c/busses/i2c-bcm-iproc.c index 19c843828fe2..95f7cac76f89 100644 --- a/drivers/i2c/busses/i2c-bcm-iproc.c +++ b/drivers/i2c/busses/i2c-bcm-iproc.c @@ -158,7 +158,7 @@ static irqreturn_t bcm_iproc_i2c_isr(int irq, void *data) if (status & BIT(IS_M_START_BUSY_SHIFT)) { iproc_i2c->xfer_is_done = 1; - complete_all(&iproc_i2c->done); + complete(&iproc_i2c->done); } writel(status, iproc_i2c->base + IS_OFFSET); |