summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-10-25 19:23:46 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-12-13 15:48:47 +0100
commitcaedcbd053bca446f8d66faf74adeb8eb3d2913f (patch)
treed005f84adac8d04ddc2ce5699e46170ffae6f4c1 /drivers/pinctrl
parentpinctrl: lynxpoint: Drop useless assignment (diff)
downloadlinux-caedcbd053bca446f8d66faf74adeb8eb3d2913f.tar.xz
linux-caedcbd053bca446f8d66faf74adeb8eb3d2913f.zip
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/intel/pinctrl-lynxpoint.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/intel/pinctrl-lynxpoint.c b/drivers/pinctrl/intel/pinctrl-lynxpoint.c
index 6f074323e00e..36978a7c2a85 100644
--- a/drivers/pinctrl/intel/pinctrl-lynxpoint.c
+++ b/drivers/pinctrl/intel/pinctrl-lynxpoint.c
@@ -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;
}