diff mbox

OMAP: fix fncpy API call

Message ID 1295976079-21228-1-git-send-email-j-pihet@ti.com (mailing list archive)
State Awaiting Upstream, archived
Headers show

Commit Message

Jean Pihet Jan. 25, 2011, 5:21 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/plat-omap/include/plat/sram.h b/arch/arm/plat-omap/include/plat/sram.h
index d673f2c..6a2166d 100644
--- a/arch/arm/plat-omap/include/plat/sram.h
+++ b/arch/arm/plat-omap/include/plat/sram.h
@@ -21,7 +21,7 @@  extern void *omap_sram_push_address(unsigned long size);
 	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;							\
 })