diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-02-26 06:12:37 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-03-06 20:19:38 -0500 |
commit | 76b3627ea511f73c25c9d9a4c28e4449d72a9b1c (patch) | |
tree | 48f2f38d1ed956ae2733b0839321602ebb8e4b62 | |
parent | c7861f37b4c63b7f45d37b113acabbf352597c46 (diff) |
gpio: gpio-pl061: Use %pa to print 'resource_size_t'
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>
-rw-r--r-- | drivers/gpio/gpio-pl061.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-pl061.c b/drivers/gpio/gpio-pl061.c index e528cb2b12aa..391766e5aeed 100644 --- a/drivers/gpio/gpio-pl061.c +++ b/drivers/gpio/gpio-pl061.c | |||
@@ -355,8 +355,8 @@ static int pl061_probe(struct amba_device *adev, const struct amba_id *id) | |||
355 | } | 355 | } |
356 | 356 | ||
357 | amba_set_drvdata(adev, chip); | 357 | amba_set_drvdata(adev, chip); |
358 | dev_info(&adev->dev, "PL061 GPIO chip @%08x registered\n", | 358 | dev_info(&adev->dev, "PL061 GPIO chip @%pa registered\n", |
359 | adev->res.start); | 359 | &adev->res.start); |
360 | 360 | ||
361 | return 0; | 361 | return 0; |
362 | } | 362 | } |