diff options
author | AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> | 2023-10-10 15:19:40 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-10-11 17:54:40 +0300 |
commit | 6eb14ffa1873d756b9141837720ff70f07d849f1 (patch) | |
tree | 3e12b3eeff36cc81bf38c52c0e5d308fc1b1b551 /tools | |
parent | db7fe1f610b39b398076f6c3fcb33378c4cb58ef (diff) | |
download | linux-6eb14ffa1873d756b9141837720ff70f07d849f1.tar.xz |
iio: adc: mt6577_auxadc: Fix kernel panic on suspend
Commit a2d518fbe376 ("iio: adc: mt6577_auxadc: Simplify with device managed function")
simplified the driver with devm hooks, but wrongly states that the
platform_set_drvdata(), platform_get_drvdata() are unused after the
simplification: the driver data is infact used in .suspend() and
.resume() PM callbacks, currently producing a kernel panic.
Reintroduce the call to platform_set_drvdata() in the probe function
Fixes: a2d518fbe376 ("iio: adc: mt6577_auxadc: Simplify with device managed function")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Markus Schneider-Pargmann <msp@baylibre.com>
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Link: https://lore.kernel.org/r/20231010121940.159696-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions