aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2023-03-29 10:51:58 -0500
committerRob Herring <[email protected]>2023-04-10 18:32:31 -0500
commit1dd5474ee6ee1d6ddc95f1423966ab8d4afda448 (patch)
treea7bca149f32d8c39bcc659ef184a6daccef13b7d /include/linux
parentc12cc1bc7d70f0efa46e5afad5775daef2f4cc81 (diff)
of: Make devtree_lock declaration private
Sparc is the only place devtree_lock is used outside of drivers/of/. Move the devtree_lock declaration into of_private.h and Sparc's prom.h so pulling in spinlock.h to of.h can be avoided for everything besides Sparc. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/of.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 0af611307db2..36cf94596eba 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -16,7 +16,6 @@
#include <linux/errno.h>
#include <linux/kobject.h>
#include <linux/mod_devicetable.h>
-#include <linux/spinlock.h>
#include <linux/topology.h>
#include <linux/notifier.h>
#include <linux/property.h>
@@ -145,7 +144,6 @@ extern struct device_node *of_root;
extern struct device_node *of_chosen;
extern struct device_node *of_aliases;
extern struct device_node *of_stdout;
-extern raw_spinlock_t devtree_lock;
/*
* struct device_node flag descriptions