/* ti_sci_release_resource() - Release a resource from TISCI resource. @res: Pointer to the TISCI resource  */
void ti_sci_release_resource(struct ti_sci_resource *res, u16 id)
/* ti_sci_release_resource() - Release a resource from TISCI resource. @res: Pointer to the TISCI resource  */
void ti_sci_release_resource(struct ti_sci_resource *res, u16 id)
{
	u16 set;
	for (set = 0; set < res->sets; set++) {
		if (res->desc[set].start <= id &&
		    (res->desc[set].num + res->desc[set].start) > id)
			clear_bit(id - res->desc[set].start,
				  res->desc[set].res_map);
	}
}