goto err_no_irq;
}
+ /* dma is not used unless configured in the device tree */
+ platform_info->enable_dma = 0;
+
/* If that failed, use channels from platform_info */
if (status == 0)
platform_info->enable_dma = 1;
- else if (platform_flag) {
+ else if (platform_flag)
platform_info->enable_dma = 0;
- dev_info(&adev->dev, "work without dma!\n");
- } else if (platform_info->enable_dma) {
+ else if (platform_info->enable_dma) {
status = pl022_dma_probe(pl022);
if (status != 0)
platform_info->enable_dma = 0;