mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-18 02:01:14 +01:00
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>
This commit is contained in:
parent
cfc7a7f5bb
commit
cf0b185e58
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue