diff options
| author | Olivier Moysan <[email protected]> | 2021-11-22 14:38:09 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-11-27 16:09:05 +0000 |
| commit | 784b470728f5ae44f245338e4660144d46dc0876 (patch) | |
| tree | 84fd93f72ac867b9e8063309fa4326f4b80e1609 /drivers/iio/trigger/stm32-timer-trigger.c | |
| parent | iio: at91-sama5d2: Fix incorrect sign extension (diff) | |
| download | kernel-784b470728f5ae44f245338e4660144d46dc0876.tar.gz kernel-784b470728f5ae44f245338e4660144d46dc0876.zip | |
iio: adc: stm32: fix null pointer on defer_probe error
dev_err_probe() calls __device_set_deferred_probe_reason()
on -EPROBE_DEFER error. If device pointer to driver core
private structure is not initialized, an null pointer error occurs.
This pointer is set on iio_device_register() call for iio device.
dev_err_probe() must be called with the device which is probing.
Replace iio device by its parent device.
Fixes: 0e346b2cfa85 ("iio: adc: stm32-adc: add vrefint calibration support")
Signed-off-by: Olivier Moysan <[email protected]>
Reviewed-by: Ahmad Fatoum <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions
