treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm / include / asm / prom.h
blob1e36c40533c161aa759a61b6d23b2f09475d7b60
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * arch/arm/include/asm/prom.h
5 * Copyright (C) 2009 Canonical Ltd. <jeremy.kerr@canonical.com>
6 */
7 #ifndef __ASMARM_PROM_H
8 #define __ASMARM_PROM_H
10 #ifdef CONFIG_OF
12 extern const struct machine_desc *setup_machine_fdt(unsigned int dt_phys);
13 extern void __init arm_dt_init_cpu_maps(void);
15 #else /* CONFIG_OF */
17 static inline const struct machine_desc *setup_machine_fdt(unsigned int dt_phys)
19 return NULL;
22 static inline void arm_dt_init_cpu_maps(void) { }
24 #endif /* CONFIG_OF */
25 #endif /* ASMARM_PROM_H */