]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: tegra: Fix PM disable depth imbalance in probe
authorZhang Qilong <zhangqilong3@huawei.com>
Mon, 26 Sep 2022 08:44:56 +0000 (16:44 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 18 Oct 2022 08:29:39 +0000 (10:29 +0200)
commit3c617a63f2e29c122b7725f0a6e996d449f19e74
tree67cafb2ce9cd8006c2b1bdefd6a4352534d26c72
parent68d797879c830eee718e75405bf9fe8c47a4a101
mtd: rawnand: tegra: Fix PM disable depth imbalance in probe

The pm_runtime_enable will increase power disable depth. Thus
a pairing decrement is needed on the error handling path to
keep it balanced according to context.

Cc: stable@vger.kernel.org
Fixes: 16c89618fa09f ("mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220926084456.98160-1-zhangqilong3@huawei.com
drivers/mtd/nand/raw/tegra_nand.c