diff options
author | Geert Uytterhoeven <[email protected]> | 2019-12-06 14:22:19 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-01-14 16:14:48 +0100 |
commit | 7c35e699c88bd60734277b26962783c60e04b494 (patch) | |
tree | a9d7226a602093ce036a5ea795c59c2cdd870057 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | 264d25275a46fce5da501874fa48a2ae5ec571c8 (diff) |
driver core: Print device when resources present in really_probe()
If a device already has devres items attached before probing, a warning
backtrace is printed. However, this backtrace does not reveal the
offending device, leaving the user uninformed. Furthermore, using
WARN_ON() causes systems with panic-on-warn to reboot.
Fix this by replacing the WARN_ON() by a dev_crit() message.
Abort probing the device, to prevent doing more damage to the device's
resources.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions