/* Set up persistent memory. If we were given values, we patch the array of resources. Otherwise, persistent memory may be allocated anywhere at all.  */
static void __init pmem_setup_resource(void)
/* Set up persistent memory. If we were given values, we patch the array of resources. Otherwise, persistent memory may be allocated anywhere at all.  */
static void __init pmem_setup_resource(void)
{
	struct resource *resource;
	resource = asic_resource_get("DiagPersistentMemory");
	if (resource && pmemaddr && pmemlen) {
		resource->start = phys_to_bus(pmemaddr - 0x80000000);
		resource->end = resource->start + pmemlen - 1;
		pr_info("persistent memory: start=0x%x  end=0x%x\n",
			resource->start, resource->end);
	}
}