Skip to content

Commit 875e0c3

Browse files
bjdooks-ctakpm00
authored andcommitted
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. Link: https://lkml.kernel.org/r/20230621163050.477668-1-ben.dooks@codethink.co.uk Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 7ca8fe9 commit 875e0c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/devres.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ __devm_ioremap_resource(struct device *dev, const struct resource *res,
129129
BUG_ON(!dev);
130130

131131
if (!res || resource_type(res) != IORESOURCE_MEM) {
132-
dev_err(dev, "invalid resource\n");
132+
dev_err(dev, "invalid resource %pR\n", res);
133133
return IOMEM_ERR_PTR(-EINVAL);
134134
}
135135

0 commit comments

Comments
 (0)