Merge branch 'topic/core' into for-linus

This commit is contained in:
Vinod Koul 2016-10-03 09:16:13 +05:30
Родитель 6619f035a6 76d7b84bfa
Коммит 99823374d3
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -997,6 +997,13 @@ int dma_async_device_register(struct dma_device *device)
} }
chan->client_count = 0; chan->client_count = 0;
} }
if (!chancnt) {
dev_err(device->dev, "%s: device has no channels!\n", __func__);
rc = -ENODEV;
goto err_out;
}
device->chancnt = chancnt; device->chancnt = chancnt;
mutex_lock(&dma_list_mutex); mutex_lock(&dma_list_mutex);