提交 cbf1e56e 编写于 作者: S Sebastian Andrzej Siewior 提交者: 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: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 1e378a6d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部