]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
gpio: gpio-pl061: Use %pa to print 'resource_size_t'
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 26 Feb 2014 11:12:37 +0000 (08:12 -0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 7 Mar 2014 01:19:38 +0000 (09:19 +0800)
The following build warning is generated when building multi_v7_defconfig with
LPAE option selected:

drivers/gpio/gpio-pl061.c:358:2: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t' [-Wformat=]

Fix it by using %pa to print 'resource_size_t'.

Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pl061.c

index e528cb2b12aaa62fbb87573d82cd5a96e50f2635..391766e5aeed8a16c93885d9c901275815c8d340 100644 (file)
@@ -355,8 +355,8 @@ static int pl061_probe(struct amba_device *adev, const struct amba_id *id)
        }
 
        amba_set_drvdata(adev, chip);
-       dev_info(&adev->dev, "PL061 GPIO chip @%08x registered\n",
-               adev->res.start);
+       dev_info(&adev->dev, "PL061 GPIO chip @%pa registered\n",
+                &adev->res.start);
 
        return 0;
 }