diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-22 10:05:57 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-22 20:25:23 +0100 |
commit | bf6479dbe743ca343fa122aaffbe9dcb1de80a51 (patch) | |
tree | 5979fd77101191ea5e3e4628094850083780ead5 /drivers/base/base.h | |
parent | af48ab8b39ee9e4c4593a5da6e2501ebb8f99b12 (diff) | |
download | lwn-bf6479dbe743ca343fa122aaffbe9dcb1de80a51.tar.gz lwn-bf6479dbe743ca343fa122aaffbe9dcb1de80a51.zip |
cpuidle: move to use bus_get_dev_root()
Direct access to the struct bus_type dev_root pointer is going away soon
so replace that with a call to bus_get_dev_root() instead, which is what
it is there for.
This allows us to clean up the cpuidle_add_interface() call a bit as it
was only called in one place, with the same argument so just put that
into the function itself. Note that cpuidle_remove_interface() should
also probably be removed in the future as there are no callers of it for
some reason.
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: linux-pm@vger.kernel.org
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230322090557.2943479-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/base.h')
0 files changed, 0 insertions, 0 deletions