[U-Boot] [PATCH] fsl_pci: Fix compiler warning
Peter Tyser
ptyser at xes-inc.com
Tue Oct 27 15:36:19 CET 2009
Get rid of:
fsl_pci_init.c: In function 'fsl_pci_init_port':
fsl_pci_init.c:424: warning: initialization discards qualifiers from pointer target type
Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
---
This fixes the compiler warning in the just-applied "ppc/85xx/pci:
fsl_pci_init: pcie agent mode support"
drivers/pci/fsl_pci_init.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c
index 289878a..259f879 100644
--- a/drivers/pci/fsl_pci_init.c
+++ b/drivers/pci/fsl_pci_init.c
@@ -421,7 +421,7 @@ int fsl_pci_init_port(struct fsl_pci_info *pci_info,
pci = (ccsr_fsl_pci_t *) pci_info->regs;
if (pcie_ep) {
- pit_t *pi = &pci->pit[2];
+ volatile pit_t *pi = &pci->pit[2];
pci_setup_indirect(hose, (u32) &pci->cfg_addr,
(u32) &pci->cfg_data);
--
1.6.2.1
More information about the U-Boot
mailing list