]> git.ipfire.org Git - thirdparty/kernel/stable.git/blame - arch/mips/pci/fixup-lantiq.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
[thirdparty/kernel/stable.git] / arch / mips / pci / fixup-lantiq.c
CommitLineData
d2912cb1 1// SPDX-License-Identifier: GPL-2.0-only
57c8cb8f 2/*
57c8cb8f 3 *
97b92108 4 * Copyright (C) 2012 John Crispin <john@phrozen.org>
57c8cb8f
JC
5 */
6
7#include <linux/of_irq.h>
8#include <linux/of_pci.h>
9
10int (*ltq_pci_plat_arch_init)(struct pci_dev *dev) = NULL;
11int (*ltq_pci_plat_dev_init)(struct pci_dev *dev) = NULL;
12
13int pcibios_plat_dev_init(struct pci_dev *dev)
14{
15 if (ltq_pci_plat_arch_init)
16 return ltq_pci_plat_arch_init(dev);
17
18 if (ltq_pci_plat_dev_init)
19 return ltq_pci_plat_dev_init(dev);
20
21 return 0;
22}
23
8eba3651 24int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
57c8cb8f 25{
16b84e5a 26 return of_irq_parse_and_map_pci(dev, slot, pin);
57c8cb8f 27}