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: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
Andy Shevchenko 2019-10-25 20:23:46 +03:00
parent 3b4c2d8ef0
commit caedcbd053

View File

@ -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;
}