diff options
author | Jon Loeliger <jdl@freescale.com> | 2007-08-06 17:39:44 -0500 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2007-08-10 11:04:05 -0500 |
commit | cf0b185e58ca0aec8ae2b2a8804ec0ef58ee21d4 (patch) | |
tree | c66b0cc4b56bbf9f07ba297fa13442dd16cbd698 /board/mpc8641hpcn | |
parent | cfc7a7f5bb3273c9951173c788001d45118f141f (diff) | |
download | u-boot-imx-cf0b185e58ca0aec8ae2b2a8804ec0ef58ee21d4.zip u-boot-imx-cf0b185e58ca0aec8ae2b2a8804ec0ef58ee21d4.tar.gz u-boot-imx-cf0b185e58ca0aec8ae2b2a8804ec0ef58ee21d4.tar.bz2 |
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 <jdl@freescale.com>
Diffstat (limited to 'board/mpc8641hpcn')
-rw-r--r-- | board/mpc8641hpcn/mpc8641hpcn.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |