Skip to contentSkip to conversation

SMDK5250: fix compiler warning

PATCH New Minkyu Kang 2 participants 2 messages Apr 4, 2012 – Apr 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SMDK5250: fix compiler warning

this patch fixed following warning.
tzpc_init.c: In function 'tzpc_init':
tzpc_init.c:35: warning: assignment from incompatible pointer type

Cc Chander Kashyap <[email protected]>
---
 board/samsung/smdk5250/tzpc_init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
board/samsung/smdk5250/tzpc_init.c +1 -1
index f39bd55..c833541 100644
@@ -32,7 +32,7 @@ void tzpc_init(void)
 	unsigned int addr;
 
 	for (addr = TZPC0_BASE; addr <= TZPC9_BASE; addr += TZPC_BASE_OFFSET) {
-		tzpc = (struct exynos5_tzpc *)addr;
+		tzpc = (struct exynos_tzpc *)addr;
 
 		if (addr == TZPC0_BASE)
 			writel(R0SIZE, &tzpc->r0size);
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 SMDK5250: fix compiler warning

Quoted 10 lines · Minkyu Kang

this patch fixed following warning.
tzpc_init.c: In function 'tzpc_init':
tzpc_init.c:35: warning: assignment from incompatible pointer type

Cc Chander Kashyap <[email protected]>

---
?board/samsung/smdk5250/tzpc_init.c | ? ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)

applied to u-boot-samsung.

Signature · 2 lines
from. prom.
www.promsoft.net