diff options
author | Rob Herring <robh@kernel.org> | 2023-03-29 10:51:58 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-04-10 18:32:31 -0500 |
commit | 1dd5474ee6ee1d6ddc95f1423966ab8d4afda448 (patch) | |
tree | a7bca149f32d8c39bcc659ef184a6daccef13b7d /drivers | |
parent | c12cc1bc7d70f0efa46e5afad5775daef2f4cc81 (diff) | |
download | linux-stable-1dd5474ee6ee1d6ddc95f1423966ab8d4afda448.tar.gz linux-stable-1dd5474ee6ee1d6ddc95f1423966ab8d4afda448.tar.bz2 linux-stable-1dd5474ee6ee1d6ddc95f1423966ab8d4afda448.zip |
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/20230329-dt-cpu-header-cleanups-v1-1-581e2605fe47@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/of/of_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/of_private.h b/drivers/of/of_private.h index fb6792d381a6..b57f1014e419 100644 --- a/drivers/of/of_private.h +++ b/drivers/of/of_private.h @@ -38,6 +38,7 @@ struct alias_prop { #define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 extern struct mutex of_mutex; +extern raw_spinlock_t devtree_lock; extern struct list_head aliases_lookup; extern struct kset *of_kset; |