diff options
| author | Trevor Gamblin <[email protected]> | 2024-06-13 12:34:06 -0400 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2024-06-22 10:48:48 +0100 |
| commit | 40c0f07528c795b83abb4550a16b7866c6db5778 (patch) | |
| tree | c71e266ee8d81378eb871f16f0401026f8f91812 /tools/perf/scripts/python/flamegraph.py | |
| parent | 20460472952043a4735e9abc1fd9de8e024d1c9e (diff) | |
iio: adc: adi-axi-adc: improve probe() error messaging
The current error handling for calls such as devm_clk_get_enabled() in
the adi-axi-adc probe() function means that, if a property such as
'clocks' (for example) is not present in the devicetree when booting a
kernel with the driver enabled, the resulting error message will be
vague, e.g.:
|adi_axi_adc 44a00000.backend: probe with driver adi_axi_adc failed with error -2
Change the devm_clk_get_enabled(), devm_regmap_init_mmio(), and
devm_iio_backend_register() checks to use dev_err_probe() with some
context for easier debugging.
After the change:
|adi_axi_adc 44a00000.backend: error -ENOENT: failed to get clock
|adi_axi_adc 44a00000.backend: probe with driver adi_axi_adc failed with error -2
Signed-off-by: Trevor Gamblin <[email protected]>
Reviewed-by: Nuno Sa <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions