Commit cbf1e56e6aa2fc116a9995d457e8f3cf2be20442

Authored by Sebastian Andrzej Siewior
Committed by Vinod Koul
1 parent 1e378a6d77

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/dma/cppi41.c
... ... @@ -956,7 +956,7 @@
956 956  
957 957 pm_runtime_enable(dev);
958 958 ret = pm_runtime_get_sync(dev);
959   - if (ret)
  959 + if (ret < 0)
960 960 goto err_get_sync;
961 961  
962 962 cdd->queues_rx = glue_info->queues_rx;