linux/drivers/reset
Alban Bedel 3d81216fde reset: Fix of_reset_control_get() for consistent return values
When of_reset_control_get() is called without connection ID it returns
-ENOENT when the 'resets' property doesn't exists or is an empty entry.
However when a connection ID is given it returns -EINVAL when the 'resets'
property doesn't exists or the requested name can't be found. This is
because the error code returned by of_property_match_string() is just
passed down as an index to of_parse_phandle_with_args(), which then
returns -EINVAL.

To get a consistent return value with both code paths we must return
-ENOENT when of_property_match_string() fails.

Signed-off-by: Alban Bedel <albeu@free.fr>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2015-11-16 09:23:47 +01:00
..
sti reset: sti: constify of_device_id array 2015-08-03 13:13:50 +02:00
core.c reset: Fix of_reset_control_get() for consistent return values 2015-11-16 09:23:47 +01:00
Kconfig drivers: reset: STi SoC system configuration reset controller support 2014-03-11 10:47:23 +00:00
Makefile Merge branch 'reset/ath79' into reset/next 2015-08-16 17:11:20 +02:00
reset-ath79.c reset: ath79: Fix missing spin_lock_init 2015-09-01 14:48:40 +02:00
reset-berlin.c reset: berlin: drop arch_initcall initialization 2015-05-18 17:52:42 +02:00
reset-lpc18xx.c reset: add driver for lpc18xx rgu 2015-08-03 13:13:51 +02:00
reset-socfpga.c reset: socfpga: Update reset-socfpga to read the altr,modrst-offset property 2015-08-03 13:13:59 +02:00
reset-sunxi.c reset: sunxi: fix spinlock initialization 2015-01-16 19:11:31 -08:00
reset-zynq.c reset: reset-zynq: Adding support for Xilinx Zynq reset controller. 2015-08-04 17:07:46 +02:00