diff options
author | Mark Brown <broonie@linaro.org> | 2013-09-01 08:48:50 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-01 08:48:50 -0400 |
commit | 7e718b4bd2ea78702b0f00c668ba99ccfa987181 (patch) | |
tree | 33f2f7f3b9816380150c89b057f97268abf4f5f2 | |
parent | 1f54f94284c316a338f75ed8804ff7e9aa92eee3 (diff) | |
parent | e93b07244d6e1d6105df78b6117b00c940006b45 (diff) |
Merge remote-tracking branch 'spi/topic/core' into spi-next
-rw-r--r-- | drivers/spi/spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 2a20c32c8277..8bc7de019e5d 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
@@ -774,7 +774,7 @@ static int spi_queued_transfer(struct spi_device *spi, struct spi_message *msg) | |||
774 | msg->status = -EINPROGRESS; | 774 | msg->status = -EINPROGRESS; |
775 | 775 | ||
776 | list_add_tail(&msg->queue, &master->queue); | 776 | list_add_tail(&msg->queue, &master->queue); |
777 | if (master->running && !master->busy) | 777 | if (!master->busy) |
778 | queue_kthread_work(&master->kworker, &master->pump_messages); | 778 | queue_kthread_work(&master->kworker, &master->pump_messages); |
779 | 779 | ||
780 | spin_unlock_irqrestore(&master->queue_lock, flags); | 780 | spin_unlock_irqrestore(&master->queue_lock, flags); |
@@ -1169,7 +1169,7 @@ int spi_register_master(struct spi_master *master) | |||
1169 | else { | 1169 | else { |
1170 | status = spi_master_initialize_queue(master); | 1170 | status = spi_master_initialize_queue(master); |
1171 | if (status) { | 1171 | if (status) { |
1172 | device_unregister(&master->dev); | 1172 | device_del(&master->dev); |
1173 | goto done; | 1173 | goto done; |
1174 | } | 1174 | } |
1175 | } | 1175 | } |