We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ac2f08 + 017a716 commit 8d674d0Copy full SHA for 8d674d0
drivers/bus/sunxi-rsb.c
@@ -687,11 +687,11 @@ static int sunxi_rsb_hw_init(struct sunxi_rsb *rsb)
687
688
static void sunxi_rsb_hw_exit(struct sunxi_rsb *rsb)
689
{
690
- /* Keep the clock and PM reference counts consistent. */
691
- if (pm_runtime_status_suspended(rsb->dev))
692
- pm_runtime_resume(rsb->dev);
693
reset_control_assert(rsb->rstc);
694
- clk_disable_unprepare(rsb->clk);
+
+ /* Keep the clock and PM reference counts consistent. */
+ if (!pm_runtime_status_suspended(rsb->dev))
+ clk_disable_unprepare(rsb->clk);
695
}
696
697
static int __maybe_unused sunxi_rsb_runtime_suspend(struct device *dev)
0 commit comments