Commit cbf1e56e authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Vinod Koul

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: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 1e378a6d
...@@ -956,7 +956,7 @@ static int cppi41_dma_probe(struct platform_device *pdev) ...@@ -956,7 +956,7 @@ static int cppi41_dma_probe(struct platform_device *pdev)
pm_runtime_enable(dev); pm_runtime_enable(dev);
ret = pm_runtime_get_sync(dev); ret = pm_runtime_get_sync(dev);
if (ret) if (ret < 0)
goto err_get_sync; goto err_get_sync;
cdd->queues_rx = glue_info->queues_rx; cdd->queues_rx = glue_info->queues_rx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment