diff options
| author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-09-18 12:01:59 -0700 | 
|---|---|---|
| committer | Evan Wilson <evan@oliodevices.com> | 2014-11-29 14:47:22 -0800 | 
| commit | 838f03096ca7e681dcf08ee2c6fe15bbdf445a86 (patch) | |
| tree | 9352e91c75277d386b8f433b52779e99fe8fd249 | |
| parent | 2c9a0d08ba15d76161cef81fe03ec680027e4044 (diff) | |
| download | olio-linux-3.10-838f03096ca7e681dcf08ee2c6fe15bbdf445a86.tar.xz olio-linux-3.10-838f03096ca7e681dcf08ee2c6fe15bbdf445a86.zip | |
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>
| -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 9f4795aff48..579697adaae 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,  	 */  	ret = gpmc_cs_remap(cs, res.start);  	if (ret < 0) { -		dev_err(&pdev->dev, "cannot remap GPMC CS %d to 0x%x\n", -			cs, res.start); +		dev_err(&pdev->dev, "cannot remap GPMC CS %d to %pa\n", +			cs, &res.start);  		goto err;  	} |