/* Activate a resource after the hardware has been made aware of it. Set tye destroy function to @destroy. Typically this frees the resource and destroys the hardware resources associated with it. Activate basically means that the function vmw_resource_lookup will find it.  */
static void vmw_resource_activate(struct vmw_resource *res, void(*hw_destroy)(struct vmw_resource *))
/* Activate a resource after the hardware has been made aware of it. Set tye destroy function to @destroy. Typically this frees the resource and destroys the hardware resources associated with it. Activate basically means that the function vmw_resource_lookup will find it.  */
static void vmw_resource_activate(struct vmw_resource *res, void(*hw_destroy)(struct vmw_resource *))
{
	struct vmw_private *dev_priv = res->dev_priv;
	write_lock(&dev_priv->resource_lock);
	res->avail = true;
	res->hw_destroy = hw_destroy;
	write_unlock(&dev_priv->resource_lock);
}