blob: 09a4ce53424fdeed7193ca50cd5c2b550a6070c1 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001// SPDX-License-Identifier: GPL-2.0-only
John Crispin73d8e6a2019-01-11 15:22:38 +01002/*
3 * Copyright (C) 2018 John Crispin <john@phrozen.org>
John Crispin73d8e6a2019-01-11 15:22:38 +01004 */
5
6#include <linux/pci.h>
7//#include <linux/of_irq.h>
8#include <linux/of_pci.h>
9
10int pcibios_plat_dev_init(struct pci_dev *dev)
11{
12 return PCIBIOS_SUCCESSFUL;
13}
14
15int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
16{
17 return of_irq_parse_and_map_pci(dev, slot, pin);
18}