i2c: rcar: fix PM ref counts in probe error paths
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 20 May 2022 09:54:21 +0000 (11:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:21:20 +0000 (10:21 +0200)
commitc9542f5f901ba425e7eff0361b81d49dea0d5259
tree0ed25a049170e3aef47082484133b4ab3e1145d0
parentebd4f37ac1e6440b3b2a81c751aacf1ed67a97a3
i2c: rcar: fix PM ref counts in probe error paths

[ Upstream commit 3fe2ec59db1a7569e18594b9c0cf1f4f1afd498e ]

We have to take care of ID_P_PM_BLOCKED when bailing out during probe.

Fixes: 7ee24eb508d6 ("i2c: rcar: disable PM in multi-master mode")
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-rcar.c