remove_resource — Remove a resource in the resource tree
int remove_resource ( | struct resource * old) ; |
Returns 0 on success, -EINVAL if the resource is not valid.
This function removes a resource previously inserted by insert_resource
or insert_resource_conflict
, and moves the children (if any) up to
where they were before. insert_resource
and insert_resource_conflict
insert a new resource, and move any conflicting resources down to the
children of the new resource.
insert_resource
, insert_resource_conflict
and remove_resource
are
intended for producers of resources, such as FW modules and bus drivers.