From: Dongliang Mu <mudongliangabcd@gmail.com>
To: Vinod Koul <vkoul@kernel.org>, Orson Zhai <orsonzhai@gmail.com>,
Baolin Wang <baolin.wang7@gmail.com>,
Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Dongliang Mu <mudongliangabcd@gmail.com>,
Baolin Wang <baolin.wang@spreadtrum.com>,
dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] dmaengine: sprd: move pm_runtime_disable to err_rpm
Date: Mon, 6 Dec 2021 19:34:37 +0800 [thread overview]
Message-ID: <20211206113437.2820889-1-mudongliangabcd@gmail.com> (raw)
When pm_runtime_get_sync fails, it forgets to invoke pm_runtime_disable
in the label err_rpm.
Fix this by moving pm_runtime_disable to label err_rpm.
Fixes: 9b3b8171f7f4 ("dmaengine: sprd: Add Spreadtrum DMA driver")
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
---
drivers/dma/sprd-dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c
index 4357d2395e6b..ae8b2cfebfee 100644
--- a/drivers/dma/sprd-dma.c
+++ b/drivers/dma/sprd-dma.c
@@ -1226,8 +1226,8 @@ static int sprd_dma_probe(struct platform_device *pdev)
dma_async_device_unregister(&sdev->dma_dev);
err_register:
pm_runtime_put_noidle(&pdev->dev);
- pm_runtime_disable(&pdev->dev);
err_rpm:
+ pm_runtime_disable(&pdev->dev);
sprd_dma_disable(sdev);
return ret;
}
--
2.25.1
next reply other threads:[~2021-12-06 11:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-06 11:34 Dongliang Mu [this message]
2021-12-07 1:39 ` Baolin Wang
2021-12-07 2:06 ` Dongliang Mu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211206113437.2820889-1-mudongliangabcd@gmail.com \
--to=mudongliangabcd@gmail.com \
--cc=baolin.wang7@gmail.com \
--cc=baolin.wang@spreadtrum.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=orsonzhai@gmail.com \
--cc=vkoul@kernel.org \
--cc=zhang.lyra@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®