aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorTrevor Gamblin <[email protected]>2024-06-17 11:18:19 -0400
committerJonathan Cameron <[email protected]>2024-06-25 21:04:48 +0100
commitd9b329a9712280968fb4ba6dac09fabde24bf566 (patch)
treed789eb4e5e797f55c23afd6606bf70d6a1e488f8 /tools/perf/scripts/python/bin/stackcollapse-record
parent04eb94997eb3ec4f2ce5dc05daa2a1db46201224 (diff)
iio: dac: adi-axi-dac: improve probe() error messaging
The current error handling for calls such as devm_clk_get_enabled() in the adi-axi-dac 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_dac 44a00000.dac: probe with driver adi_axi_dac 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_dac 44a00000.dac: error -ENOENT: failed to get clock |adi_axi_dac 44a00000.dac: probe with driver adi_axi_dac failed with error -2 Suggested-by: Nuno Sa <[email protected]> Tested-by: Angelo Dureghello <[email protected]> Signed-off-by: Trevor Gamblin <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions