[U-Boot] [PATCH] fsl_pci: Fix compiler warning

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@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);

On Oct 27, 2009, at 9:36 AM, Peter Tyser wrote:
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@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(-)
Already done :)
- k
participants (2)
-
Kumar Gala
-
Peter Tyser