Commit caedcbd0 authored by Andy Shevchenko's avatar Andy Shevchenko

pinctrl: lynxpoint: Use %pR to print IO resource

Replace explicit casting by pointer to struct resource with
specifier replacement to %pR to print the IO resource.
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 3b4c2d8e
......@@ -346,8 +346,7 @@ static int lp_gpio_probe(struct platform_device *pdev)
reg_len = resource_size(io_rc);
if (!devm_request_region(dev, lg->reg_base, reg_len, "lp-gpio")) {
dev_err(dev, "failed requesting IO region 0x%x\n",
(unsigned int)lg->reg_base);
dev_err(dev, "failed requesting IO region %pR\n", &io_rc);
return -EBUSY;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment