Commit f5b9b77e authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Vinod Koul
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent f776076b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1828,7 +1828,7 @@ static int dw_probe(struct platform_device *pdev)
	if (pdev->dev.of_node) {
	if (pdev->dev.of_node) {
		err = of_dma_controller_register(pdev->dev.of_node,
		err = of_dma_controller_register(pdev->dev.of_node,
						 dw_dma_of_xlate, dw);
						 dw_dma_of_xlate, dw);
		if (err && err != -ENODEV)
		if (err)
			dev_err(&pdev->dev,
			dev_err(&pdev->dev,
				"could not register of_dma_controller\n");
				"could not register of_dma_controller\n");
	}
	}