Commit 8e935b92 authored by Dinghao Liu's avatar Dinghao Liu Committed by Miquel Raynal

mtd: rawnand: gpmi: Fix runtime PM imbalance in gpmi_nand_probe

There is no reason that the failure of __gpmi_enable_clk()
could lead to PM usage counter decrement.
Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200522101713.24350-1-dinghao.liu@zju.edu.cn
parent 550e68ea
...@@ -2663,7 +2663,7 @@ static int gpmi_nand_probe(struct platform_device *pdev) ...@@ -2663,7 +2663,7 @@ static int gpmi_nand_probe(struct platform_device *pdev)
ret = __gpmi_enable_clk(this, true); ret = __gpmi_enable_clk(this, true);
if (ret) if (ret)
goto exit_nfc_init; goto exit_acquire_resources;
pm_runtime_set_autosuspend_delay(&pdev->dev, 500); pm_runtime_set_autosuspend_delay(&pdev->dev, 500);
pm_runtime_use_autosuspend(&pdev->dev); pm_runtime_use_autosuspend(&pdev->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment