summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2019-12-06 14:22:19 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-28 15:39:03 +0100
commit7ed33ee8b2a208b08b67cfb1d68096ae02af638f (patch)
tree59da1692294574e38ef47a7ccdfbca2b1c6f7242 /include/linux
parent4940484b9a8a527b315b55dad3500937c592f755 (diff)
driver core: Print device when resources present in really_probe()
[ Upstream commit 7c35e699c88bd60734277b26962783c60e04b494 ] 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 <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20191206132219.28908-1-geert+renesas@glider.be Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions