blob: 9e651a4af05eaa2b21c638813a9a941f044d6598 [file] [log] [blame]
John Crispin73d8e6a2019-01-11 15:22:38 +01001/*
2 * Copyright (C) 2018 John Crispin <john@phrozen.org>
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 as published
6 * by the Free Software Foundation.
7 */
8
9#include <linux/pci.h>
10//#include <linux/of_irq.h>
11#include <linux/of_pci.h>
12
13int pcibios_plat_dev_init(struct pci_dev *dev)
14{
15 return PCIBIOS_SUCCESSFUL;
16}
17
18int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
19{
20 return of_irq_parse_and_map_pci(dev, slot, pin);
21}