/* macio_release_resource - Release an MMIO resource @dev: pointer to the device holding the resource @resource_no: resource number to release  */
void macio_release_resource(struct macio_dev *dev, int resource_no)
/* macio_release_resource - Release an MMIO resource @dev: pointer to the device holding the resource @resource_no: resource number to release  */
void macio_release_resource(struct macio_dev *dev, int resource_no)
{
	struct macio_devres *dr = find_macio_dr(dev);
	if (macio_resource_len(dev, resource_no) == 0)
		return;
	release_mem_region(macio_resource_start(dev, resource_no),
			   macio_resource_len(dev, resource_no));
	if (dr && resource_no < 32)
		dr->res_mask &= ~(1 << resource_no);
}