Merge branches 'stable/drivers-3.2', 'stable/drivers.bugfixes-3.2' and 'stable/pci...
[linux-btrfs-devel.git] / arch / arm / include / asm / prom.h
blob6f65ca86a5ec03347ea3305874437120680f77e1
1 /*
2 * arch/arm/include/asm/prom.h
4 * Copyright (C) 2009 Canonical Ltd. <jeremy.kerr@canonical.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
11 #ifndef __ASMARM_PROM_H
12 #define __ASMARM_PROM_H
14 #ifdef CONFIG_OF
16 #include <asm/setup.h>
17 #include <asm/irq.h>
19 extern struct machine_desc *setup_machine_fdt(unsigned int dt_phys);
20 extern void arm_dt_memblock_reserve(void);
22 #else /* CONFIG_OF */
24 static inline struct machine_desc *setup_machine_fdt(unsigned int dt_phys)
26 return NULL;
29 static inline void arm_dt_memblock_reserve(void) { }
31 #endif /* CONFIG_OF */
32 #endif /* ASMARM_PROM_H */