aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-03-26 13:29:13 -0400
committerVinod Koul <vinod.koul@intel.com>2013-04-15 00:21:19 -0400
commitf5b9b77eea1f9aaf7725872be4b382f5530bb41e (patch)
treed0574cdb0d64da577ee4773d6c6f705f47de660f
parentf776076b9fa82d630651c9af56359d80fce86d68 (diff)
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>
-rw-r--r--drivers/dma/dw_dmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
index 951ef5bc8afb..e33dc3bdbdba 100644
--- a/drivers/dma/dw_dmac.c
+++ b/drivers/dma/dw_dmac.c
@@ -1828,7 +1828,7 @@ static int dw_probe(struct platform_device *pdev)
1828 if (pdev->dev.of_node) { 1828 if (pdev->dev.of_node) {
1829 err = of_dma_controller_register(pdev->dev.of_node, 1829 err = of_dma_controller_register(pdev->dev.of_node,
1830 dw_dma_of_xlate, dw); 1830 dw_dma_of_xlate, dw);
1831 if (err && err != -ENODEV) 1831 if (err)
1832 dev_err(&pdev->dev, 1832 dev_err(&pdev->dev,
1833 "could not register of_dma_controller\n"); 1833 "could not register of_dma_controller\n");
1834 } 1834 }