From: Sebastian Andrzej Siewior Date: Tue, 22 Oct 2013 10:14:06 +0000 (+0200) Subject: dma: cppi41: return code > 0 of pm_runtime_get_sync() is not an error X-Git-Tag: v3.13-rc1~29^2~14 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=cbf1e56e6aa2fc116a9995d457e8f3cf2be20442;p=linux.git 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 Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c index ec87492cfb07..c29dacff66fa 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;