From: Dirk Eibach Date: Thu, 3 Jul 2014 07:28:14 +0000 (+0200) Subject: board: controlcenterd: Fix pci access X-Git-Tag: v2014.07~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c2b951b0db7311256be5d01ab8f57ad0459acb7e;p=u-boot board: controlcenterd: Fix pci access readl was called with values instead of pointers to these values. Why this ever did work is a mystery... Signed-off-by: Dirk Eibach --- diff --git a/board/gdsys/p1022/controlcenterd.c b/board/gdsys/p1022/controlcenterd.c index 642b807e80..f76d968962 100644 --- a/board/gdsys/p1022/controlcenterd.c +++ b/board/gdsys/p1022/controlcenterd.c @@ -382,9 +382,9 @@ static void hydra_initialize(void) fpga = pci_map_bar(devno, PCI_BASE_ADDRESS_0, PCI_REGION_MEM); - versions = readl(fpga->versions); - fpga_version = readl(fpga->fpga_version); - fpga_features = readl(fpga->fpga_features); + versions = readl(&fpga->versions); + fpga_version = readl(&fpga->fpga_version); + fpga_features = readl(&fpga->fpga_features); hardware_version = versions & 0xf; feature_uart_channels = (fpga_features >> 6) & 0x1f;