diff options
author | Kai-Heng Feng <kai.heng.feng@canonical.com> | 2023-02-23 05:00:59 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-02-26 15:55:20 +0300 |
commit | 099cc90a5a62e68b2fe3a42da011ab929b98bf73 (patch) | |
tree | d5ce7278313c19f33022cbf7f45608d81ab8e047 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 03fada47311a3e668f73efc9278c4a559e64ee85 (diff) | |
download | linux-099cc90a5a62e68b2fe3a42da011ab929b98bf73.tar.xz |
iio: light: cm32181: Unregister second I2C client if present
If a second dummy client that talks to the actual I2C address was
created in probe(), there should be a proper cleanup on driver and
device removal to avoid leakage.
So unregister the dummy client via another callback.
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Suggested-by: Hans de Goede <hdegoede@redhat.com>
Fixes: c1e62062ff54 ("iio: light: cm32181: Handle CM3218 ACPI devices with 2 I2C resources")
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2152281
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20230223020059.2013993-1-kai.heng.feng@canonical.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions