treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / include / asm / isa-bridge.h
blob47295894bf910205db04cb116d6379ae6b53b03a
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ISA_BRIDGE_H
3 #define __ISA_BRIDGE_H
5 #ifdef CONFIG_PPC64
7 extern void isa_bridge_find_early(struct pci_controller *hose);
8 extern void isa_bridge_init_non_pci(struct device_node *np);
10 static inline int isa_vaddr_is_ioport(void __iomem *address)
12 /* Check if address hits the reserved legacy IO range */
13 unsigned long ea = (unsigned long)address;
14 return ea >= ISA_IO_BASE && ea < ISA_IO_END;
17 #else
19 static inline int isa_vaddr_is_ioport(void __iomem *address)
21 /* No specific ISA handling on ppc32 at this stage, it
22 * all goes through PCI
24 return 0;
27 #endif
29 #endif /* __ISA_BRIDGE_H */