if (ioremap_change_attr(phys_addr, size, flags) < 0) { 
if (flags && ioremap_change_attr(phys_addr, size, flags) < 0) { 
void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags){	void * addr;	struct vm_struct * area;	unsigned long offset, last_addr;	/* Don't allow wraparound or zero size */	last_addr = phys_addr + size - 1;	if (!size || last_addr < phys_addr)		return NULL;	/*	 * Don't remap the low PCI/ISA area, it's always mapped..	 */	if (phys_addr >= ISA_START_ADDRESS && last_addr < ISA_END_ADDRESS)		return (__force void __iomem *)phys_to_virt(phys_addr);#ifndef CONFIG_DISCONTIGMEM	/*	 * Don't allow anybody to remap normal RAM that we're using..	 */	if (last_addr < virt_to_phys(high_memory)) {		char *t_addr, *t_end; 		struct page *page;		t_addr = __va(phys_addr);		t_end = t_addr + (size - 1);	   		for(page = virt_to_page(t_addr); page <= virt_to_page(t_end); page++)			if(!PageReserved(page))				return NULL;	}#endif	/*	 * Mappings have to be page-aligned	 */	offset = phys_addr & ~PAGE_MASK;	phys_addr &= PAGE_MASK;	size = PAGE_ALIGN(last_addr+1) - phys_addr;	/*	 * Ok, go for it..	 */	area = get_vm_area(size, VM_IOREMAP | (flags << 20));	if (!area)		return NULL;	area->phys_addr = phys_addr;	addr = area->addr;	if (remap_area_pages((unsigned long) addr, phys_addr, size, flags)) {		remove_vm_area((void *)(PAGE_MASK & (unsigned long) addr));		return NULL;	}	if (ioremap_change_attr(phys_addr, size, flags) < 0) {		area->flags &= 0xffffff;		vunmap(addr);		return NULL;	}	return (__force void __iomem *) (offset + (char *)addr);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/7856dfeb23c16ef3d8dac8871b4d5b93c70b59b9/ioremap.c/clean/arch/x86_64/mm/ioremap.c