소스 검색

fsl_pci: Only modify registers if we have them

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>
Kumar Gala 17 년 전
부모
커밋
876b8f9789
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      drivers/pci/fsl_pci_init.c

+ 2 - 1
drivers/pci/fsl_pci_init.c

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