diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-10-19 22:28:08 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2022-12-07 21:04:40 +0100 |
commit | 810199f7315604bd969409109f1c96b4ebe772ad (patch) | |
tree | 9780c8b0ef789903919e6d3c7fc75117bf642d35 /mm/list_lru.c | |
parent | 3256412fc57b6cabbc1cf1317d020e42f6d7aeab (diff) | |
download | linux-stable-810199f7315604bd969409109f1c96b4ebe772ad.tar.gz linux-stable-810199f7315604bd969409109f1c96b4ebe772ad.tar.bz2 linux-stable-810199f7315604bd969409109f1c96b4ebe772ad.zip |
i2c: xiic: Make sure to disable clock on .remove()
If for whatever reasons pm_runtime_resume_and_get() failed, .remove() is
exited early, the clock isn't freed and runtime PM state isn't reset.
The right thing to do however is to free all resources that don't need
HW access after a problem with runtime PM. Also issue a warning in that
case and return 0 to suppress a less helpful warning by the driver core.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'mm/list_lru.c')
0 files changed, 0 insertions, 0 deletions