1 /* 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 13 int pcibios_plat_dev_init(struct pci_dev *dev) 14 { 15 return PCIBIOS_SUCCESSFUL; 16 } 17 18 int 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 } 22