1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 2 /* 3 * Copyright (C) 2018 John Crispin <john@phro 3 * Copyright (C) 2018 John Crispin <john@phrozen.org> 4 */ 4 */ 5 5 6 #include <linux/pci.h> 6 #include <linux/pci.h> 7 //#include <linux/of_irq.h> 7 //#include <linux/of_irq.h> 8 #include <linux/of_pci.h> 8 #include <linux/of_pci.h> 9 9 10 int pcibios_plat_dev_init(struct pci_dev *dev) 10 int pcibios_plat_dev_init(struct pci_dev *dev) 11 { 11 { 12 return 0; !! 12 return PCIBIOS_SUCCESSFUL; 13 } 13 } 14 14 15 int pcibios_map_irq(const struct pci_dev *dev, 15 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 16 { 16 { 17 return of_irq_parse_and_map_pci(dev, s 17 return of_irq_parse_and_map_pci(dev, slot, pin); 18 } 18 } 19 19
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.