diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2016-02-05 13:41:39 +0100 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2017-04-04 17:36:10 +0200 |
commit | 62e24c5775ecb387a3eb33701378ccfa6dbc98ee (patch) | |
tree | 66b088d3862e20b8680fa7982b9902d83092df40 /.mailmap | |
parent | 0ca10b60ceeb5372da01798ca68c116ae45a6eb6 (diff) | |
download | lwn-62e24c5775ecb387a3eb33701378ccfa6dbc98ee.tar.gz lwn-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 <andriy.shevchenko@linux.intel.com>
Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Ramiro Oliveira <Ramiro.Oliveira@synopsys.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions