From: Jon Loeliger Date: Mon, 6 Aug 2007 22:39:44 +0000 (-0500) Subject: 8641hpcn: Do correct sized pointer math. X-Git-Tag: v2008.10-rc1~906^2~13^2^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf0b185e58ca0aec8ae2b2a8804ec0ef58ee21d4;p=platform%2Fkernel%2Fu-boot.git 8641hpcn: Do correct sized pointer math. When I rebased Ed's patch and cleaned up a few compilation problems, I apparently rebased my brain on crack first. Fix that by doing (char *) sized pointer math as needed. Signed-off-by: Jon Loeliger --- diff --git a/board/mpc8641hpcn/mpc8641hpcn.c b/board/mpc8641hpcn/mpc8641hpcn.c index d2182ab..1bfbe88 100644 --- a/board/mpc8641hpcn/mpc8641hpcn.c +++ b/board/mpc8641hpcn/mpc8641hpcn.c @@ -268,8 +268,8 @@ void pci_init_board(void) * Activate ULI1575 legacy chip by performing a fake * memory access. Needed to make ULI RTC work. */ - in_be32((unsigned *) CFG_PCI1_MEM_BASE - + CFG_PCI1_MEM_SIZE - 0x1000000); + in_be32((unsigned *) ((char *)(CFG_PCI1_MEM_BASE + + CFG_PCI1_MEM_SIZE - 0x1000000))); } else { puts("PCI-EXPRESS 1: Disabled\n");