Browse Source

dw_dmac: remove unnecessary ENODEV check

If CONFIG_OF is not set the of_node of the device will always be NULL.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Andy Shevchenko 12 năm trước cách đây
mục cha
commit
f5b9b77eea
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/dma/dw_dmac.c

+ 1 - 1
drivers/dma/dw_dmac.c

@@ -1828,7 +1828,7 @@ static int dw_probe(struct platform_device *pdev)
 	if (pdev->dev.of_node) {
 		err = of_dma_controller_register(pdev->dev.of_node,
 						 dw_dma_of_xlate, dw);
-		if (err && err != -ENODEV)
+		if (err)
 			dev_err(&pdev->dev,
 				"could not register of_dma_controller\n");
 	}