aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/cppc_acpi.h
diff options
context:
space:
mode:
authorPhilipp Zabel <[email protected]>2016-02-05 12:41:39 +0000
committerPhilipp Zabel <[email protected]>2017-04-04 15:36:10 +0000
commit62e24c5775ecb387a3eb33701378ccfa6dbc98ee (patch)
tree66b088d3862e20b8680fa7982b9902d83092df40 /include/acpi/cppc_acpi.h
parentreset: fix optional reset_control_get stubs to return NULL (diff)
downloadkernel-62e24c5775ecb387a3eb33701378ccfa6dbc98ee.tar.gz
kernel-62e24c5775ecb387a3eb33701378ccfa6dbc98ee.zip
reset: add exported __reset_control_get, return NULL if optional
Rename the internal __reset_control_get/put functions to __reset_control_get/put_internal and add an exported __reset_control_get equivalent to __of_reset_control_get that takes a struct device parameter. This avoids the confusing call to __of_reset_control_get in the non-DT case and fixes the devm_reset_control_get_optional function to return NULL if RESET_CONTROLLER is enabled but dev->of_node == NULL. Fixes: bb475230b8e5 ("reset: make optional functions really optional") Reported-by: Andy Shevchenko <[email protected]> Tested-by: Andy Shevchenko <[email protected]> Cc: Ramiro Oliveira <[email protected]> Signed-off-by: Philipp Zabel <[email protected]>
Diffstat (limited to 'include/acpi/cppc_acpi.h')
0 files changed, 0 insertions, 0 deletions