Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: al: Remove useless dw_pcie_ops

We have removed the assumption that dw_pcie_ops always exists in the dwc
core driver, so we can remove the useless dw_pcie_ops now.

Link: https://lore.kernel.org/r/20210128144324.2fa8577c@xhacker.debian
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jonathan Chocron <jonnyc@amazon.com>

authored by

Jisheng Zhang and committed by
Bjorn Helgaas
2a34b86f a2f882d8

-4
-4
drivers/pci/controller/dwc/pcie-al.c
··· 314 314 .host_init = al_pcie_host_init, 315 315 }; 316 316 317 - static const struct dw_pcie_ops dw_pcie_ops = { 318 - }; 319 - 320 317 static int al_pcie_probe(struct platform_device *pdev) 321 318 { 322 319 struct device *dev = &pdev->dev; ··· 331 334 return -ENOMEM; 332 335 333 336 pci->dev = dev; 334 - pci->ops = &dw_pcie_ops; 335 337 pci->pp.ops = &al_pcie_host_ops; 336 338 337 339 al_pcie->pci = pci;