diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-03-09 10:58:19 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-06-07 12:29:58 +0200 |
commit | ca0aa17f2db3468fd017038d23a78e17388e2f67 (patch) | |
tree | 81e080525873e5feb75c3e2c47608d24345daa25 /MAINTAINERS | |
parent | 5578d0a79b6430fa1543640dd6f2d397d0886ce7 (diff) |
i2c: sprd: Delete i2c adapter in .remove's error path
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: 8b9ec0719834 ("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>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions