diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-09-18 15:01:59 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-09-18 15:01:59 -0400 |
commit | f70bf2a3fdc1d8c53d1c3b1d84a72d71a17606a1 (patch) | |
tree | 33c4189dd372acf31b585ca2202cef1f21e56763 /arch/arm | |
parent | 4cf9cf8967f0316722c6cb4ebf8093b74a8e1dd6 (diff) |
ARM: mach-omap2: gpmc: Fix warning when CONFIG_ARM_LPAE=y
When CONFIG_ARM_LPAE=y the following build warning is generated:
arch/arm/mach-omap2/gpmc.c:1495:4: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat]
According to Documentation/printk-formats.txt '%pa' can be used to properly
print 'resource_size_t'.
Reported-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/gpmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 9f4795aff48a..579697adaae7 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c | |||
@@ -1491,8 +1491,8 @@ static int gpmc_probe_generic_child(struct platform_device *pdev, | |||
1491 | */ | 1491 | */ |
1492 | ret = gpmc_cs_remap(cs, res.start); | 1492 | ret = gpmc_cs_remap(cs, res.start); |
1493 | if (ret < 0) { | 1493 | if (ret < 0) { |
1494 | dev_err(&pdev->dev, "cannot remap GPMC CS %d to 0x%x\n", | 1494 | dev_err(&pdev->dev, "cannot remap GPMC CS %d to %pa\n", |
1495 | cs, res.start); | 1495 | cs, &res.start); |
1496 | goto err; | 1496 | goto err; |
1497 | } | 1497 | } |
1498 | 1498 | ||