/* Retrieves and prepares the virtual address needed to access the hardware.  */
static void __iomem* ug_udbg_setup_exi_io_base(struct device_node *np)
/* Retrieves and prepares the virtual address needed to access the hardware.  */
static void __iomem* ug_udbg_setup_exi_io_base(struct device_node *np)
{
	void __iomem *exi_io_base = NULL;
	phys_addr_t paddr;
	const unsigned int *reg;
	reg = of_get_property(np, "reg", NULL);
	if (reg) {
		paddr = of_translate_address(np, reg);
		if (paddr)
			exi_io_base = ioremap(paddr, reg[1]);
	}
	return exi_io_base;
}