linux/drivers/reset
Philipp Zabel 62e24c5775 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: bb475230b8 ("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>
2017-04-04 17:36:10 +02:00
..
hisilicon reset: hisilicon: add reset-hi3660 2017-01-09 10:38:58 +01:00
sti reset: sti: Remove STiH415/6 reset support 2016-10-20 11:52:08 +02:00
tegra reset: Add Tegra BPMP reset driver 2016-11-18 14:34:56 +01:00
core.c reset: add exported __reset_control_get, return NULL if optional 2017-04-04 17:36:10 +02:00
Kconfig reset: zx2967: add reset controller driver for ZTE's zx2967 family 2017-01-20 10:36:12 +01:00
Makefile reset: zx2967: add reset controller driver for ZTE's zx2967 family 2017-01-20 10:36:12 +01:00
reset-ath79.c reset: ath79: add missing include 2016-08-25 13:27:23 +02:00
reset-berlin.c reset: berlin: make it explicitly non-modular 2016-10-24 10:43:40 +02:00
reset-lpc18xx.c reset: lpc18xx: make it explicitly non-modular 2016-10-24 10:45:38 +02:00
reset-meson.c reset: Add support for the Amlogic Meson SoC Reset Controller 2016-06-01 08:21:10 +02:00
reset-oxnas.c reset: oxnas: Add OX820 support 2016-10-20 11:54:55 +02:00
reset-pistachio.c reset: pistachio: use devm_reset_controller_register() 2016-05-30 09:37:47 +02:00
reset-socfpga.c reset: socfpga: make it explicitly non-modular 2016-10-24 10:45:27 +02:00
reset-stm32.c drivers: reset: Add STM32 reset driver 2016-08-24 15:21:28 +02:00
reset-sunxi.c reset: sunxi: make it explicitly non-modular 2016-10-24 10:45:31 +02:00
reset-ti-syscon.c reset: constify reset_control_ops structures 2017-01-12 11:12:07 +01:00
reset-uniphier.c reset: uniphier: add compatible string for LD11 SD-reset block 2017-01-20 10:36:13 +01:00
reset-zx2967.c reset: make zx2967 explicitly non-modular 2017-02-02 16:32:09 +01:00
reset-zynq.c reset: zynq: make it explicitly non-modular 2016-10-24 10:45:32 +02:00