Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756797Ab3JQOTr (ORCPT ); Thu, 17 Oct 2013 10:19:47 -0400 Received: from www.linutronix.de ([62.245.132.108]:35263 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755514Ab3JQOTp (ORCPT ); Thu, 17 Oct 2013 10:19:45 -0400 From: Sebastian Andrzej Siewior To: Vinod Koul Cc: Dan Williams , linux-kernel@vger.kernel.org, Felipe Balbi , linux-usb@vger.kernel.org, kishon@ti.com, Sebastian Andrzej Siewior Subject: [PATCH 2/2] dma: cppi41: return code > 0 of pm_runtime_get_sync() is not an error Date: Thu, 17 Oct 2013 16:19:36 +0200 Message-Id: <1382019576-25105-2-git-send-email-bigeasy@linutronix.de> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1382019576-25105-1-git-send-email-bigeasy@linutronix.de> References: <1382019576-25105-1-git-send-email-bigeasy@linutronix.de> X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 893 Lines: 29 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 --- drivers/dma/cppi41.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c index 272969c..42134f9 100644 --- a/drivers/dma/cppi41.c +++ b/drivers/dma/cppi41.c @@ -957,7 +957,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; -- 1.8.4.rc3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/