Skip to content

Commit

Permalink
Merge remote-tracking branch 'spi/topic/topcliff' into spi-next
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Jun 26, 2013
2 parents adb25d5 + f5d8ee3 commit cf7315b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/spi/spi-topcliff-pch.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ static irqreturn_t pch_spi_handler(int irq, void *dev_id)

if (reg_spsr_val & SPSR_ORF_BIT) {
dev_err(&board_dat->pdev->dev, "%s Over run error\n", __func__);
if (data->current_msg->complete != 0) {
if (data->current_msg->complete) {
data->transfer_complete = true;
data->current_msg->status = -EIO;
data->current_msg->complete(data->current_msg->context);
Expand Down Expand Up @@ -643,7 +643,7 @@ static void pch_spi_set_tx(struct pch_spi_data *data, int *bpw)
list_for_each_entry_safe(pmsg, tmp, data->queue.next, queue) {
pmsg->status = -ENOMEM;

if (pmsg->complete != 0)
if (pmsg->complete)
pmsg->complete(pmsg->context);

/* delete from queue */
Expand Down Expand Up @@ -693,7 +693,7 @@ static void pch_spi_nomore_transfer(struct pch_spi_data *data)
* [To the spi core..indicating end of transfer] */
data->current_msg->status = 0;

if (data->current_msg->complete != 0) {
if (data->current_msg->complete) {
dev_dbg(&data->master->dev,
"%s:Invoking callback of SPI core\n", __func__);
data->current_msg->complete(data->current_msg->context);
Expand Down Expand Up @@ -1186,7 +1186,7 @@ static void pch_spi_process_messages(struct work_struct *pwork)
list_for_each_entry_safe(pmsg, tmp, data->queue.next, queue) {
pmsg->status = -EIO;

if (pmsg->complete != 0) {
if (pmsg->complete) {
spin_unlock(&data->lock);
pmsg->complete(pmsg->context);
spin_lock(&data->lock);
Expand Down

0 comments on commit cf7315b

Please sign in to comment.