]> git.sur5r.net Git - u-boot/commitdiff
fsl_pci: Only modify registers if we have them
authorKumar Gala <galak@kernel.crashing.org>
Wed, 23 Apr 2008 21:58:04 +0000 (16:58 -0500)
committerWolfgang Denk <wd@denx.de>
Thu, 24 Apr 2008 12:20:12 +0000 (14:20 +0200)
pme_msg_det exists only on PCIe controllers only set it if we are a "bridge".

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/pci/fsl_pci_init.c

index 68e45e17b3c3b5d3e3dca778587c15ad80736c3e..7dc33be89959fcee932e317e1666fae823ff69b8 100644 (file)
@@ -182,7 +182,8 @@ fsl_pci_init(struct pci_controller *hose)
 
        /* Clear all error indications */
 
-       pci->pme_msg_det = 0xffffffff;
+       if (bridge)
+               pci->pme_msg_det = 0xffffffff;
        pci->pedr = 0xffffffff;
 
        pci_hose_read_config_word (hose, dev, PCI_DSR, &temp16);