mirror of
https://github.com/torvalds/linux.git
synced 2026-07-05 20:51:37 +02:00
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> |
||
|---|---|---|
| .. | ||
| sti | ||
| core.c | ||
| Kconfig | ||
| Makefile | ||
| reset-ath79.c | ||
| reset-berlin.c | ||
| reset-lpc18xx.c | ||
| reset-socfpga.c | ||
| reset-sunxi.c | ||
| reset-zynq.c | ||