]> git.dujemihanovic.xyz Git - u-boot.git/commit
zmx25: Fix build warning due to 'get_reset_cause' defined but not used
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 23 Sep 2011 05:13:22 +0000 (05:13 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 30 Sep 2011 20:01:05 +0000 (22:01 +0200)
commite6ec1761cd3c88631dd3d4e9e688e9abdf472cc9
tree4e564c368a022d0b24d9f865986e43c2f1161c91
parent9ba24f17b290d1a20475125f5e04b0d9ba74a1a1
zmx25: Fix build warning due to 'get_reset_cause' defined but not used

When building the zmx25 target we get:

Configuring for zmx25 board...
generic.c:108: warning: 'get_reset_cause' defined but not used

Fix this warning by defining get_reset_cause only if CONFIG_DISPLAY_CPUINFO is defined.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/arm926ejs/mx25/generic.c