reset: add of_reset_control_get_by_index()
authorVince Hsu <vinceh@nvidia.com>
Mon, 13 Jul 2015 12:39:39 +0000 (13:39 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 16 Nov 2015 08:23:47 +0000 (09:23 +0100)
commitc0a13aa6da5da19f9eedb562b226ec585aabdca9
tree1844fe1a0250625d91020fa855fc7af8f16d76b0
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
reset: add of_reset_control_get_by_index()

Add of_reset_control_get_by_index() to allow the drivers to get reset
device without knowing its name.

Signed-off-by: Vince Hsu <vinceh@nvidia.com>
[jonathanh@nvidia.com: Updated stub function to return -ENOTSUPP instead
 of -ENOSYS which should only be used for system calls.]
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c
include/linux/reset.h