diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-24 11:01:31 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-24 15:34:18 +0100 |
commit | dcfbb67e48a2becfce7990386e985b9c45098ee5 (patch) | |
tree | 8554801058a1ccb137047ffee73ed998f35a4194 /drivers/base/regmap/regcache-lzo.c | |
parent | 5b9ff0ba11042096bfb396e506fa9038e6a61de7 (diff) | |
download | linux-next-dcfbb67e48a2becfce7990386e985b9c45098ee5.tar.gz |
driver core: class: use lock_class_key already present in struct subsys_private
In commit 37e98d9bedb5 ("driver core: bus: move lock_class_key into
dynamic structure"), we moved the lock_class_key into the internal
structure shared by busses and classes, but only used it for buses.
Move the class code to use this structure as it is already present and
being allocated, instead of the statically allocated on-the-stack
variable that class_create() was using as part of a macro wrapper around
the core function call.
Reviewed-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230324100132.1633647-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/regmap/regcache-lzo.c')
0 files changed, 0 insertions, 0 deletions