patch-2.3.48 linux/arch/arm/mm/consistent.c

Next file: linux/arch/i386/defconfig
Previous file: linux/arch/arm/kernel/armksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/arch/arm/mm/consistent.c linux/arch/arm/mm/consistent.c
@@ -23,7 +23,6 @@
 {
 	int order;
 	unsigned long page;
-	struct vm_struct *area;
 	void *ret;
 
 	if (in_interrupt())
@@ -40,15 +39,10 @@
 
 	*dma_handle = virt_to_bus((void *)page);
 
-	area = get_vm_area(size, VM_IOREMAP); /* maybe new type? */
-	if (!area)
-		goto no_area;
-
 	ret = __ioremap(virt_to_phys((void *)page), PAGE_SIZE << order, 0);
 	if (ret)
 		return ret;
 
-no_area:
 	free_pages(page, order);
 no_page:
 	BUG();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)