* [PATCH] iommu/omap: using pm_runtime_resume_and_get to simplify the code
@ 2022-04-20 3:07 cgel.zte
0 siblings, 0 replies; only message in thread
From: cgel.zte @ 2022-04-20 3:07 UTC (permalink / raw)
To: joro; +Cc: iommu, Zeal Robot, will, linux-kernel, Minghao Chi
From: Minghao Chi <chi.minghao@zte.com.cn>
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
---
drivers/iommu/omap-iommu.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index 4aab631ef517..7cfa80ccd9a8 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -193,9 +193,7 @@ static int iommu_enable(struct omap_iommu *obj)
{
int ret;
- ret = pm_runtime_get_sync(obj->dev);
- if (ret < 0)
- pm_runtime_put_noidle(obj->dev);
+ ret = pm_runtime_resume_and_get(obj->dev);
return ret < 0 ? ret : 0;
}
--
2.25.1
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-20 3:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 3:07 [PATCH] iommu/omap: using pm_runtime_resume_and_get to simplify the code cgel.zte
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).