From: Yoichi Yuasa Date: Sat, 3 Sep 2005 22:56:19 +0000 (-0700) Subject: [PATCH] mips: add pcibios_select_root X-Git-Tag: v2.6.14-rc1~874 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2de84920d9489f7fd87fa4b04d996d569def4fa;p=linux-2.6 [PATCH] mips: add pcibios_select_root Add pcibios_select_root to MIPS. Signed-off-by: Yoichi Yuasa Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-mips/pci.h b/include/asm-mips/pci.h index 092900f116..049f01f648 100644 --- a/include/asm-mips/pci.h +++ b/include/asm-mips/pci.h @@ -167,4 +167,17 @@ static inline void pcibios_add_platform_entries(struct pci_dev *dev) /* Do platform specific device initialization at pci_enable_device() time */ extern int pcibios_plat_dev_init(struct pci_dev *dev); +static inline struct resource * +pcibios_select_root(struct pci_dev *pdev, struct resource *res) +{ + struct resource *root = NULL; + + if (res->flags & IORESOURCE_IO) + root = &ioport_resource; + if (res->flags & IORESOURCE_MEM) + root = &iomem_resource; + + return root; +} + #endif /* _ASM_PCI_H */