diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-11-12 11:44:34 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-11-16 13:43:41 -0500 |
commit | 0ba2cf70d23437161199e6b627f6948b47be9db4 (patch) | |
tree | 12a0b4257798ad7bc99f01bd65255c60084d35e3 | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) |
spi: bcm63xx: use correct format string for printing a resource
With a 64-bit resource_size_t, we get a build warning on bcm63xx_spi_probe:
drivers/spi/spi-bcm63xx.c:565:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=]
As we are printing a resource, we can just use the %pr format
specifier that pretty-prints the address and avoids the warning.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-bcm63xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index 06858e04ec59..bf9a610e5b89 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c | |||
@@ -562,8 +562,8 @@ static int bcm63xx_spi_probe(struct platform_device *pdev) | |||
562 | goto out_clk_disable; | 562 | goto out_clk_disable; |
563 | } | 563 | } |
564 | 564 | ||
565 | dev_info(dev, "at 0x%08x (irq %d, FIFOs size %d)\n", | 565 | dev_info(dev, "at %pr (irq %d, FIFOs size %d)\n", |
566 | r->start, irq, bs->fifo_size); | 566 | r, irq, bs->fifo_size); |
567 | 567 | ||
568 | return 0; | 568 | return 0; |
569 | 569 | ||