diff options
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index d3dea1d1e3a9..da1ee95241c1 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -1,3 +1,4 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0+ */ | ||
1 | #ifndef _LINUX_OF_H | 2 | #ifndef _LINUX_OF_H |
2 | #define _LINUX_OF_H | 3 | #define _LINUX_OF_H |
3 | /* | 4 | /* |
@@ -9,11 +10,6 @@ | |||
9 | * Updates for PPC64 by Peter Bergner & David Engebretsen, IBM Corp. | 10 | * Updates for PPC64 by Peter Bergner & David Engebretsen, IBM Corp. |
10 | * Updates for SPARC64 by David S. Miller | 11 | * Updates for SPARC64 by David S. Miller |
11 | * Derived from PowerPC and Sparc prom.h files by Stephen Rothwell, IBM Corp. | 12 | * Derived from PowerPC and Sparc prom.h files by Stephen Rothwell, IBM Corp. |
12 | * | ||
13 | * This program is free software; you can redistribute it and/or | ||
14 | * modify it under the terms of the GNU General Public License | ||
15 | * as published by the Free Software Foundation; either version | ||
16 | * 2 of the License, or (at your option) any later version. | ||
17 | */ | 13 | */ |
18 | #include <linux/types.h> | 14 | #include <linux/types.h> |
19 | #include <linux/bitops.h> | 15 | #include <linux/bitops.h> |
@@ -544,6 +540,8 @@ const char *of_prop_next_string(struct property *prop, const char *cur); | |||
544 | 540 | ||
545 | bool of_console_check(struct device_node *dn, char *name, int index); | 541 | bool of_console_check(struct device_node *dn, char *name, int index); |
546 | 542 | ||
543 | extern int of_cpu_node_to_id(struct device_node *np); | ||
544 | |||
547 | #else /* CONFIG_OF */ | 545 | #else /* CONFIG_OF */ |
548 | 546 | ||
549 | static inline void of_core_init(void) | 547 | static inline void of_core_init(void) |
@@ -916,6 +914,11 @@ static inline void of_property_clear_flag(struct property *p, unsigned long flag | |||
916 | { | 914 | { |
917 | } | 915 | } |
918 | 916 | ||
917 | static inline int of_cpu_node_to_id(struct device_node *np) | ||
918 | { | ||
919 | return -ENODEV; | ||
920 | } | ||
921 | |||
919 | #define of_match_ptr(_ptr) NULL | 922 | #define of_match_ptr(_ptr) NULL |
920 | #define of_match_node(_matches, _node) NULL | 923 | #define of_match_node(_matches, _node) NULL |
921 | #endif /* CONFIG_OF */ | 924 | #endif /* CONFIG_OF */ |