Skip to content

Commit

Permalink
dma: cppi41: return code > 0 of pm_runtime_get_sync() is not an error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sebastian Andrzej Siewior authored and Vinod Koul committed Nov 12, 2013
1 parent 1e378a6 commit cbf1e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/cppi41.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cbf1e56

Please sign in to comment.