diff options
Diffstat (limited to 'drivers/reset/core.c')
-rw-r--r-- | drivers/reset/core.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/reset/core.c b/drivers/reset/core.c index baeaf82d40d9..7955e00d04d4 100644 --- a/drivers/reset/core.c +++ b/drivers/reset/core.c | |||
@@ -126,6 +126,21 @@ int reset_control_deassert(struct reset_control *rstc) | |||
126 | EXPORT_SYMBOL_GPL(reset_control_deassert); | 126 | EXPORT_SYMBOL_GPL(reset_control_deassert); |
127 | 127 | ||
128 | /** | 128 | /** |
129 | * reset_control_status - returns a negative errno if not supported, a | ||
130 | * positive value if the reset line is asserted, or zero if the reset | ||
131 | * line is not asserted. | ||
132 | * @rstc: reset controller | ||
133 | */ | ||
134 | int reset_control_status(struct reset_control *rstc) | ||
135 | { | ||
136 | if (rstc->rcdev->ops->status) | ||
137 | return rstc->rcdev->ops->status(rstc->rcdev, rstc->id); | ||
138 | |||
139 | return -ENOSYS; | ||
140 | } | ||
141 | EXPORT_SYMBOL_GPL(reset_control_status); | ||
142 | |||
143 | /** | ||
129 | * of_reset_control_get - Lookup and obtain a reference to a reset controller. | 144 | * of_reset_control_get - Lookup and obtain a reference to a reset controller. |
130 | * @node: device to be reset by the controller | 145 | * @node: device to be reset by the controller |
131 | * @id: reset line name | 146 | * @id: reset line name |