mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 19:19:57 +07:00
01306aeadd
In preparation to allow users to enable DeviceTree without arch or machine selecting it, we need to fix build errors on MIPS. When CONFIG_OF is enabled, device_tree_init cannot be resolved. This is trivially fixed by using CONFIG_USE_OF instead of CONFIG_OF for prom.h. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
35 lines
845 B
C
35 lines
845 B
C
/*
|
|
* arch/mips/include/asm/prom.h
|
|
*
|
|
* Copyright (C) 2010 Cisco Systems Inc. <dediao@cisco.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
*/
|
|
#ifndef __ASM_PROM_H
|
|
#define __ASM_PROM_H
|
|
|
|
#ifdef CONFIG_USE_OF
|
|
#include <linux/bug.h>
|
|
#include <linux/io.h>
|
|
#include <linux/types.h>
|
|
#include <asm/bootinfo.h>
|
|
|
|
extern void device_tree_init(void);
|
|
|
|
struct boot_param_header;
|
|
|
|
extern void __dt_setup_arch(void *bph);
|
|
extern int __dt_register_buses(const char *bus0, const char *bus1);
|
|
|
|
#else /* CONFIG_OF */
|
|
static inline void device_tree_init(void) { }
|
|
#endif /* CONFIG_OF */
|
|
|
|
extern char *mips_get_machine_name(void);
|
|
extern void mips_set_machine_name(const char *name);
|
|
|
|
#endif /* __ASM_PROM_H */
|