diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2022-01-06 14:06:04 +0300 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2022-02-01 16:29:34 +0300 |
| commit | 360108661277a784aacb22913b853e9b0fc4de1c (patch) | |
| tree | 8131aa55eadf48dfb5544faabc8c24a832f185d0 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | 0b80eb6c3832447a28634dc2611cd2a8f53aa189 (diff) | |
| download | linux-360108661277a784aacb22913b853e9b0fc4de1c.tar.xz | |
power: supply: axp288_fuel_gauge: Use devm_add_action_or_reset() for iio chan release
An existing comment already mentions we: "cannot use devm_iio_channel_get
because x86 systems lack the device<->channel maps which iio_channel_get
will try to use when passed a non NULL device pointer".
Work around this by registering a devm action to free the iio-channels.
This is a step on the way to fully converting the probe() function to
only use devm managed resources.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
