From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by kanga.kvack.org (Postfix) with ESMTP id D9B976B0038 for ; Thu, 2 Jan 2014 16:53:41 -0500 (EST) Received: by mail-pa0-f43.google.com with SMTP id bj1so15032154pad.30 for ; Thu, 02 Jan 2014 13:53:41 -0800 (PST) Received: from smtp.codeaurora.org (smtp.codeaurora.org. [198.145.11.231]) by mx.google.com with ESMTPS id sa6si43718738pbb.263.2014.01.02.13.53.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jan 2014 13:53:40 -0800 (PST) From: Laura Abbott Subject: [RFC PATCHv3 02/11] iommu/omap: Use get_vm_area directly Date: Thu, 2 Jan 2014 13:53:20 -0800 Message-Id: <1388699609-18214-3-git-send-email-lauraa@codeaurora.org> In-Reply-To: <1388699609-18214-1-git-send-email-lauraa@codeaurora.org> References: <1388699609-18214-1-git-send-email-lauraa@codeaurora.org> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton , Kyungmin Park , Dave Hansen , linux-mm@kvack.org, Joerg Roedel Cc: linux-kernel@vger.kernel.org, Laura Abbott , iommu@lists.linux-foundation.org There is no need to call __get_vm_area with VMALLOC_START and VMALLOC_END when get_vm_area already does that. Call get_vm_area directly. Signed-off-by: Laura Abbott --- drivers/iommu/omap-iovmm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/iommu/omap-iovmm.c b/drivers/iommu/omap-iovmm.c index d147259..6280d50 100644 --- a/drivers/iommu/omap-iovmm.c +++ b/drivers/iommu/omap-iovmm.c @@ -214,7 +214,7 @@ static void *vmap_sg(const struct sg_table *sgt) if (!total) return ERR_PTR(-EINVAL); - new = __get_vm_area(total, VM_IOREMAP, VMALLOC_START, VMALLOC_END); + new = get_vm_area(total, VM_IOREMAP); if (!new) return ERR_PTR(-ENOMEM); va = (u32)new->addr; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org