mtd: rawnand: gpmi: Fix runtime PM imbalance in gpmi_nand_probe
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Fri, 22 May 2020 10:17:13 +0000 (18:17 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:37 +0000 (10:53 +0200)
commit8e935b92d269826f1e4bcf31d3f688dbcdf71219
tree9af0ee2f49200c0f3b42be150f302e315252926e
parent550e68ea36a6671a96576c0531685ce6e6c0d19d
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: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200522101713.24350-1-dinghao.liu@zju.edu.cn
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c