aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorIan Molton <ian.molton@codethink.co.uk>2014-04-28 10:32:21 -0400
committerGrant Likely <grant.likely@linaro.org>2014-05-22 22:20:48 -0400
commitff5f762b44237deb83be7bf6db965eeafadfa3e1 (patch)
treec669772bbe45bd451463d9aeda6309948ee81806 /drivers/of
parent947fdaad0627e277c5f3a2573203c4fab3db513b (diff)
pci/of: Remove dead code
Commit 98d9f30c820d509145757e6ecbc36013aa02f7bc "pci/of: Match PCI devices to OF nodes dynamically" introduced a lot of code derived from the PPC PCI code, including some likes which were redundant. Remove these lines. Reviewed-by: William Towle <william.towle@codethink.co.uk> Signed-off-by: Ian Molton <ian.molton@codethink.co.uk> Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/of_pci_irq.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/of/of_pci_irq.c b/drivers/of/of_pci_irq.c
index 8736bc7676c5..7e4e21438e28 100644
--- a/drivers/of/of_pci_irq.c
+++ b/drivers/of/of_pci_irq.c
@@ -19,7 +19,6 @@ int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq
19 struct device_node *dn, *ppnode; 19 struct device_node *dn, *ppnode;
20 struct pci_dev *ppdev; 20 struct pci_dev *ppdev;
21 u32 lspec; 21 u32 lspec;
22 __be32 lspec_be;
23 __be32 laddr[3]; 22 __be32 laddr[3];
24 u8 pin; 23 u8 pin;
25 int rc; 24 int rc;
@@ -87,7 +86,6 @@ int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq
87 out_irq->np = ppnode; 86 out_irq->np = ppnode;
88 out_irq->args_count = 1; 87 out_irq->args_count = 1;
89 out_irq->args[0] = lspec; 88 out_irq->args[0] = lspec;
90 lspec_be = cpu_to_be32(lspec);
91 laddr[0] = cpu_to_be32((pdev->bus->number << 16) | (pdev->devfn << 8)); 89 laddr[0] = cpu_to_be32((pdev->bus->number << 16) | (pdev->devfn << 8));
92 laddr[1] = laddr[2] = cpu_to_be32(0); 90 laddr[1] = laddr[2] = cpu_to_be32(0);
93 return of_irq_parse_raw(laddr, out_irq); 91 return of_irq_parse_raw(laddr, out_irq);