diff options
Diffstat (limited to 'drivers/mailbox/mailbox.c')
-rw-r--r-- | drivers/mailbox/mailbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index 537f4f6d009b..674b35f402f5 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c | |||
@@ -351,7 +351,7 @@ struct mbox_chan *mbox_request_channel(struct mbox_client *cl, int index) | |||
351 | init_completion(&chan->tx_complete); | 351 | init_completion(&chan->tx_complete); |
352 | 352 | ||
353 | if (chan->txdone_method == TXDONE_BY_POLL && cl->knows_txdone) | 353 | if (chan->txdone_method == TXDONE_BY_POLL && cl->knows_txdone) |
354 | chan->txdone_method |= TXDONE_BY_ACK; | 354 | chan->txdone_method = TXDONE_BY_ACK; |
355 | 355 | ||
356 | spin_unlock_irqrestore(&chan->lock, flags); | 356 | spin_unlock_irqrestore(&chan->lock, flags); |
357 | 357 | ||
@@ -418,7 +418,7 @@ void mbox_free_channel(struct mbox_chan *chan) | |||
418 | spin_lock_irqsave(&chan->lock, flags); | 418 | spin_lock_irqsave(&chan->lock, flags); |
419 | chan->cl = NULL; | 419 | chan->cl = NULL; |
420 | chan->active_req = NULL; | 420 | chan->active_req = NULL; |
421 | if (chan->txdone_method == (TXDONE_BY_POLL | TXDONE_BY_ACK)) | 421 | if (chan->txdone_method == TXDONE_BY_ACK) |
422 | chan->txdone_method = TXDONE_BY_POLL; | 422 | chan->txdone_method = TXDONE_BY_POLL; |
423 | 423 | ||
424 | module_put(chan->mbox->dev->driver->owner); | 424 | module_put(chan->mbox->dev->driver->owner); |