dw_dmac: remove unnecessary ENODEV check
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 26 Mar 2013 17:29:13 +0000 (19:29 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 15 Apr 2013 04:21:19 +0000 (09:51 +0530)
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>
drivers/dma/dw_dmac.c

index 951ef5bc8afbe3477611ec31cafe118fadfb13d3..e33dc3bdbdbaf5a48b753cf400b12de12c5dcd42 100644 (file)
@@ -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");
        }
This page took 0.026356 seconds and 5 git commands to generate.