i2c: sprd: Delete i2c adapter in .remove's error path
stable inclusion from stable-v5.10.184 commit 10e376a7c3874187d9a59ea2e33bca1ddcbc6394 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8IRR2 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=10e376a7c3874187d9a59ea2e33bca1ddcbc6394 -------------------------------- [ Upstream commit ca0aa17f ] If pm runtime resume fails the .remove callback used to exit early. This resulted in an error message by the driver core but the device gets removed anyhow. This lets the registered i2c adapter stay around with an unbound parent device. So only skip clk disabling if resume failed, but do delete the adapter. Fixes: 8b9ec071 ("i2c: Add Spreadtrum I2C controller driver") Signed-off-by:Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by:
Andi Shyti <andi.shyti@kernel.org> Signed-off-by:
Wolfram Sang <wsa@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment