devres: show which resource was invalid in __devm_ioremap_resource()
PATCH 1/1 devres: show which resource was invalid in __devm_ioremap_resource()
The other error prints in this call show the resource which wsan't valid, so add this to the first print when it checks for basic validity of the resource.
Signed-off-by Ben Dooks <[email protected]>
--- lib/devres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/devres.c +1 -1
@@ -129,7 +129,7 @@ __devm_ioremap_resource(struct device *dev, const struct resource *res,BUG_ON (!dev);if (!res ||resource_type (res) !=IORESOURCE_MEM ) { -dev_err (dev,"invalid resource\n" ); +dev_err (dev,"invalid resource %pR\n" , res);return IOMEM_ERR_PTR (-EINVAL ); }
Signature · 1 line
2.40.1