lib: devres: Add error information printing for __devm_ioremap_resource()
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 28 Apr 2021 06:32:03 +0000 (14:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 11:48:16 +0000 (13:48 +0200)
commit5c3e241f5246445da29bd03783ca61a18face968
tree28e548d0a7dbce5142db97e99ec59c2c5cf4377a
parenta6daf4bb5fcb893f7aa2a97e043ee11816743f81
lib: devres: Add error information printing for __devm_ioremap_resource()

Ensure that all error handling branches print error information. In this
way, when this function fails, the upper-layer functions can directly
return an error code without missing debugging information. Otherwise,
the error message will be printed redundantly or missing.

Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210428063203.691-1-thunder.leizhen@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/devres.c