[rtems commit] powerpc/shared/bootloader/pci.c: Remove warnings

Joel Sherril joel at rtems.org
Mon Mar 9 21:14:31 UTC 2015


Module:    rtems
Branch:    master
Commit:    a1148f366705b400a874e1a8c2cc1371cf54db0e
Changeset: http://git.rtems.org/rtems/commit/?id=a1148f366705b400a874e1a8c2cc1371cf54db0e

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sat Mar  7 16:24:40 2015 -0600

powerpc/shared/bootloader/pci.c: Remove warnings

---

 c/src/lib/libbsp/powerpc/shared/bootloader/pci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/pci.c b/c/src/lib/libbsp/powerpc/shared/bootloader/pci.c
index 59bf862..0c9472e 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/pci.c
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/pci.c
@@ -67,7 +67,7 @@ typedef struct _pci_area_head {
 #define PCI_AREA_IO 2
 
 struct _pci_private {
-      volatile u_int * config_addr;
+      volatile void * config_addr;
       volatile u_char * config_data;
       struct pci_dev **last_dev_p;
       struct pci_bus pci_root;
@@ -1328,7 +1328,7 @@ void pci_init(void)
           * but we should not use residual data in
           * this case anyway.
           */
-         pci->config_addr = ((volatile u_int *)
+         pci->config_addr = ((volatile void *)
                              (ptr_mem_map->io_base+0xcf8));
          pci->config_data = ptr_mem_map->io_base+0xcfc;
       } else if(hostbridge->DeviceId.Interface==PCIBridgeDirect) {




More information about the vc mailing list