/* This function returns "start" on success, -ENOMEM on failure. Use cpm_dpram_addr() to get the virtual address of the area. Use cpm_muram_free() to free the allocation.  */
unsigned long cpm_muram_alloc_fixed(unsigned long offset, unsigned long size)
/* This function returns "start" on success, -ENOMEM on failure. Use cpm_dpram_addr() to get the virtual address of the area. Use cpm_muram_free() to free the allocation.  */
unsigned long cpm_muram_alloc_fixed(unsigned long offset, unsigned long size)
{
	unsigned long start;
	unsigned long flags;
	spin_lock_irqsave(&cpm_muram_lock, flags);
	cpm_muram_info.alignment = 1;
	start = rh_alloc_fixed(&cpm_muram_info, offset, size, "commproc");
	spin_unlock_irqrestore(&cpm_muram_lock, flags);
	return start;
}