Home
last modified time | relevance | path

Searched hist:"099 cc90a5a62e68b2fe3a42da011ab929b98bf73" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/light/
H A Dcm32181.cdiff 099cc90a5a62e68b2fe3a42da011ab929b98bf73 Thu Feb 23 03:00:59 CET 2023 Kai-Heng Feng <kai.heng.feng@canonical.com> 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>