]> git.sur5r.net Git - u-boot/blobdiff - board/mpc8641hpcn/mpc8641hpcn.c
8641hpcn: Do correct sized pointer math.
[u-boot] / board / mpc8641hpcn / mpc8641hpcn.c
index d2182aba5f0483c99e5698f702307d868318cbea..1bfbe88b5aafb7625757bda01ca2bc6fb0fafd96 100644 (file)
@@ -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");