| 245 | } |
| 246 | |
| 247 | void rt_reset_control_put(struct rt_reset_control *rstc) |
| 248 | { |
| 249 | struct rt_reset_controller *rstcer; |
| 250 | |
| 251 | if (!rstc) |
| 252 | { |
| 253 | return; |
| 254 | } |
| 255 | |
| 256 | rstcer = rstc->rstcer; |
| 257 | |
| 258 | rt_spin_lock(&rstcer->spinlock); |
| 259 | |
| 260 | rt_list_remove(&rstc->list); |
| 261 | |
| 262 | rt_spin_unlock(&rstcer->spinlock); |
| 263 | |
| 264 | reset_free(rstc); |
| 265 | } |
| 266 | |
| 267 | static struct rt_reset_control *ofw_get_reset_control(struct rt_ofw_node *np, int index, |
| 268 | const char *name, rt_bool_t is_array) |
no test coverage detected