summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2013-10-22 12:14:06 +0200
committerVinod Koul <vinod.koul@intel.com>2013-11-12 14:28:25 +0530
commitcbf1e56e6aa2fc116a9995d457e8f3cf2be20442 (patch)
tree3c668c7918f00bab67369fc90a1dd50c98eebc77
parent1e378a6d7789bf142319c6207398367336c49082 (diff)
downloadop-kernel-dev-cbf1e56e6aa2fc116a9995d457e8f3cf2be20442.zip
op-kernel-dev-cbf1e56e6aa2fc116a9995d457e8f3cf2be20442.tar.gz
dma: cppi41: return code > 0 of pm_runtime_get_sync() is not an error
Return code of pm_runtime_get_sync() > 0 is not an error and may happen. Noticed during rmmod & modprobe testing. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/cppi41.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c
index ec87492..c29dacf 100644
--- a/drivers/dma/cppi41.c
+++ b/drivers/dma/cppi41.c
@@ -956,7 +956,7 @@ static int cppi41_dma_probe(struct platform_device *pdev)
pm_runtime_enable(dev);
ret = pm_runtime_get_sync(dev);
- if (ret)
+ if (ret < 0)
goto err_get_sync;
cdd->queues_rx = glue_info->queues_rx;
OpenPOWER on IntegriCloud