mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 15:18:15 +00:00
pci/of: Remove dead code
Commit 98d9f30c82
"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>
This commit is contained in:
parent
947fdaad06
commit
ff5f762b44
1 changed files with 0 additions and 2 deletions
|
@ -19,7 +19,6 @@ int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq
|
||||||
struct device_node *dn, *ppnode;
|
struct device_node *dn, *ppnode;
|
||||||
struct pci_dev *ppdev;
|
struct pci_dev *ppdev;
|
||||||
u32 lspec;
|
u32 lspec;
|
||||||
__be32 lspec_be;
|
|
||||||
__be32 laddr[3];
|
__be32 laddr[3];
|
||||||
u8 pin;
|
u8 pin;
|
||||||
int rc;
|
int rc;
|
||||||
|
@ -87,7 +86,6 @@ int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq
|
||||||
out_irq->np = ppnode;
|
out_irq->np = ppnode;
|
||||||
out_irq->args_count = 1;
|
out_irq->args_count = 1;
|
||||||
out_irq->args[0] = lspec;
|
out_irq->args[0] = lspec;
|
||||||
lspec_be = cpu_to_be32(lspec);
|
|
||||||
laddr[0] = cpu_to_be32((pdev->bus->number << 16) | (pdev->devfn << 8));
|
laddr[0] = cpu_to_be32((pdev->bus->number << 16) | (pdev->devfn << 8));
|
||||||
laddr[1] = laddr[2] = cpu_to_be32(0);
|
laddr[1] = laddr[2] = cpu_to_be32(0);
|
||||||
return of_irq_parse_raw(laddr, out_irq);
|
return of_irq_parse_raw(laddr, out_irq);
|
||||||
|
|
Loading…
Add table
Reference in a new issue