diff options
author | 2017-09-07 13:23:58 -0500 | |
---|---|---|
committer | 2017-09-07 13:23:58 -0500 | |
commit | 6238e057d4056015f757956b0046fca8a64d8cfa (patch) | |
tree | cd5baa05b120e757642c72688ba1ceba2ad6f32e /drivers/pci | |
parent | Merge branch 'pci/host-faraday' into next (diff) | |
parent | PCI: hisi: Constify dw_pcie_host_ops structure (diff) | |
download | linux-6238e057d4056015f757956b0046fca8a64d8cfa.tar.gz linux-6238e057d4056015f757956b0046fca8a64d8cfa.tar.bz2 linux-6238e057d4056015f757956b0046fca8a64d8cfa.zip |
Merge branch 'pci/host-hisi' into next
* pci/host-hisi:
PCI: hisi: Constify dw_pcie_host_ops structure
PCI: hisi: Remove unused variable driver
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/dwc/pcie-hisi.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pci/dwc/pcie-hisi.c b/drivers/pci/dwc/pcie-hisi.c index e51acee0ddf3..a20179169e06 100644 --- a/drivers/pci/dwc/pcie-hisi.c +++ b/drivers/pci/dwc/pcie-hisi.c @@ -223,7 +223,7 @@ static int hisi_pcie_link_up(struct dw_pcie *pci) return hisi_pcie->soc_ops->hisi_pcie_link_up(hisi_pcie); } -static struct dw_pcie_host_ops hisi_pcie_host_ops = { +static const struct dw_pcie_host_ops hisi_pcie_host_ops = { .rd_own_conf = hisi_pcie_cfg_read, .wr_own_conf = hisi_pcie_cfg_write, }; @@ -268,7 +268,6 @@ static int hisi_pcie_probe(struct platform_device *pdev) struct dw_pcie *pci; struct hisi_pcie *hisi_pcie; struct resource *reg; - struct device_driver *driver; int ret; hisi_pcie = devm_kzalloc(dev, sizeof(*hisi_pcie), GFP_KERNEL); @@ -282,8 +281,6 @@ static int hisi_pcie_probe(struct platform_device *pdev) pci->dev = dev; pci->ops = &dw_pcie_ops; - driver = dev->driver; - hisi_pcie->pci = pci; hisi_pcie->soc_ops = of_device_get_match_data(dev); |