Commit 6238e057 authored by Bjorn Helgaas's avatar Bjorn Helgaas

Merge branch 'pci/host-hisi' into next

* pci/host-hisi:
  PCI: hisi: Constify dw_pcie_host_ops structure
  PCI: hisi: Remove unused variable driver
parents 73626629 5a475168
...@@ -223,7 +223,7 @@ static int hisi_pcie_link_up(struct dw_pcie *pci) ...@@ -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); 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, .rd_own_conf = hisi_pcie_cfg_read,
.wr_own_conf = hisi_pcie_cfg_write, .wr_own_conf = hisi_pcie_cfg_write,
}; };
...@@ -268,7 +268,6 @@ static int hisi_pcie_probe(struct platform_device *pdev) ...@@ -268,7 +268,6 @@ static int hisi_pcie_probe(struct platform_device *pdev)
struct dw_pcie *pci; struct dw_pcie *pci;
struct hisi_pcie *hisi_pcie; struct hisi_pcie *hisi_pcie;
struct resource *reg; struct resource *reg;
struct device_driver *driver;
int ret; int ret;
hisi_pcie = devm_kzalloc(dev, sizeof(*hisi_pcie), GFP_KERNEL); hisi_pcie = devm_kzalloc(dev, sizeof(*hisi_pcie), GFP_KERNEL);
...@@ -282,8 +281,6 @@ static int hisi_pcie_probe(struct platform_device *pdev) ...@@ -282,8 +281,6 @@ static int hisi_pcie_probe(struct platform_device *pdev)
pci->dev = dev; pci->dev = dev;
pci->ops = &dw_pcie_ops; pci->ops = &dw_pcie_ops;
driver = dev->driver;
hisi_pcie->pci = pci; hisi_pcie->pci = pci;
hisi_pcie->soc_ops = of_device_get_match_data(dev); hisi_pcie->soc_ops = of_device_get_match_data(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment