aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Pihet <j-pihet@ti.com>2011-01-25 18:48:06 +0100
committerDave Martin <dave.martin@linaro.org>2011-02-23 12:25:08 +0000
commite7e9a3a79201bbe65fe0fad512563fb4c5609294 (patch)
treec8dea17cea4e8f52490c682f03ae6c26bdfa72ce
parent4cdc84b1e7579ee7a5992351804b46453d6ffab2 (diff)
downloadlinux-linaro-e7e9a3a79201bbe65fe0fad512563fb4c5609294.tar.gz
OMAP: fix fncpy API call
Fix a potential problem with function types when calling the fncpy API to copy the PM code functions to SRAM. Signed-off-by: Jean Pihet <j-pihet@ti.com>
-rw-r--r--arch/arm/plat-omap/include/plat/sram.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/include/plat/sram.h b/arch/arm/plat-omap/include/plat/sram.h
index d673f2c55f9..f500fc34d06 100644
--- a/arch/arm/plat-omap/include/plat/sram.h
+++ b/arch/arm/plat-omap/include/plat/sram.h
@@ -18,10 +18,10 @@ extern void *omap_sram_push_address(unsigned long size);
/* Macro to push a function to the internal SRAM, using the fncpy API */
#define omap_sram_push(funcp, size) ({ \
- typeof(&funcp) _res = NULL; \
+ typeof(&(funcp)) _res = NULL; \
void *_sram_address = omap_sram_push_address(size); \
if (_sram_address) \
- _res = fncpy(_sram_address, &funcp, size); \
+ _res = fncpy(_sram_address, &(funcp), size); \
_res; \
})