summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2019-03-01 01:58:09 -0500
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2019-03-01 10:23:06 -0500
commitd3b34d048b7c1a4aac9f2e2e6ff6b0e21e50719e (patch)
treeb458df7c0c964cd1e5eec190dc5999c38b6d85b9
parent33776d059630e5045ea9ccf756c74de8f9cc86de (diff)
PCI: aardvark: Make symbol 'advk_pci_bridge_emul_ops' static
Fix the following sparse warning: drivers/pci/controller/pci-aardvark.c:469:28: warning: symbol 'advk_pci_bridge_emul_ops' was not declared. Should it be static? Fixes: 8a3ebd8de328 ("PCI: aardvark: Implement emulated root PCI bridge config space") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--drivers/pci/controller/pci-aardvark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c
index 6eecae447af3..eb58dfdaba1b 100644
--- a/drivers/pci/controller/pci-aardvark.c
+++ b/drivers/pci/controller/pci-aardvark.c
@@ -466,7 +466,7 @@ advk_pci_bridge_emul_pcie_conf_write(struct pci_bridge_emul *bridge,
466 } 466 }
467} 467}
468 468
469struct pci_bridge_emul_ops advk_pci_bridge_emul_ops = { 469static struct pci_bridge_emul_ops advk_pci_bridge_emul_ops = {
470 .read_pcie = advk_pci_bridge_emul_pcie_conf_read, 470 .read_pcie = advk_pci_bridge_emul_pcie_conf_read,
471 .write_pcie = advk_pci_bridge_emul_pcie_conf_write, 471 .write_pcie = advk_pci_bridge_emul_pcie_conf_write,
472}; 472};