]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerWolfram Sang <wsa@kernel.org>
Sat, 21 May 2022 06:16:40 +0000 (08:16 +0200)
commitc9c0a3838373e146185cf2237be79730a7ef7976
treee0c359538cca0e30b319e635a8b564bf3b8161dc
parent3b4e5aa820fc62286f22e62ef8da3ba3f576b9d9
i2c: rcar: fix PM ref counts in probe error paths

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

Fixes: 2d53f29071df ("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>
drivers/i2c/busses/i2c-rcar.c