From patchwork Tue Aug 5 10:47:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 34932 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f72.google.com (mail-qg0-f72.google.com [209.85.192.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4472920523 for ; Tue, 5 Aug 2014 10:50:47 +0000 (UTC) Received: by mail-qg0-f72.google.com with SMTP id q107sf2153146qgd.11 for ; Tue, 05 Aug 2014 03:50:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=0ct+G+k7NymvKFPAvnhH2l0G/TOhw4nbdWx25mDbgUs=; b=SyAXPMsJblkyqR7oaYSMwEJkOAuPOXCiKLXjyaEWM1litrB1ZLkhVSMuM4sXaSCe2Q HtlQGY8Nle686qPbyxO047mItdxQXxYhxRIEqmxQxJ7m/Jht9Sqkyjyio1miUMPGj9kI TuBBIoLAYWlqwQO7kn+CbptsCmGteVgZ0Vvc0AtEhxM0MCSP3H99JQ+5wybkoQkALDp3 zKglypyv2jgT9dsFP43V6ouXwkLZDj61AIes04Va+Xzg0KouU9vWbFX05+qeCBsPTUMm Px2A3gwFT7EPbhHa8bXNoqe7OzIxtM93heYTVNHp2RvAzkarNmPPQiacsqCnG22hZOaN mGiA== X-Gm-Message-State: ALoCoQmY27lklUJUUaEVz1O/et6B9s9rzfAv8uEShJe8nReKsEdVNIyZVS5K39MlVYfdNbWX5TwO X-Received: by 10.236.120.9 with SMTP id o9mr1553684yhh.14.1407235846794; Tue, 05 Aug 2014 03:50:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.54 with SMTP id 51ls199729qgw.41.gmail; Tue, 05 Aug 2014 03:50:46 -0700 (PDT) X-Received: by 10.53.9.133 with SMTP id ds5mr809741vdd.66.1407235846653; Tue, 05 Aug 2014 03:50:46 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id yr10si778291vcb.63.2014.08.05.03.50.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Aug 2014 03:50:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id la4so1111241vcb.37 for ; Tue, 05 Aug 2014 03:50:46 -0700 (PDT) X-Received: by 10.221.47.9 with SMTP id uq9mr1022646vcb.48.1407235846582; Tue, 05 Aug 2014 03:50:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp374670vcb; Tue, 5 Aug 2014 03:50:46 -0700 (PDT) X-Received: by 10.224.136.70 with SMTP id q6mr4405769qat.14.1407235846072; Tue, 05 Aug 2014 03:50:46 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id hv10si2130619qcb.9.2014.08.05.03.50.45 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 05 Aug 2014 03:50:46 -0700 (PDT) Received-SPF: none (google.com: linaro-mm-sig-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XEcKK-0005V6-2g; Tue, 05 Aug 2014 10:50:44 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XEcIo-0005Fd-Fc for linaro-mm-sig@lists.linaro.org; Tue, 05 Aug 2014 10:49:10 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N9T006J2Y1R5L00@mailout3.w1.samsung.com> for linaro-mm-sig@lists.linaro.org; Tue, 05 Aug 2014 11:49:04 +0100 (BST) X-AuditID: cbfec7f5-b7f776d000003e54-a6-53e0b6a08bd6 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 6D.DC.15956.0A6B0E35; Tue, 05 Aug 2014 11:49:04 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N9T0057MY17SE80@eusync3.samsung.com>; Tue, 05 Aug 2014 11:49:04 +0100 (BST) From: Marek Szyprowski To: iommu@lists.linux-foundation.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 05 Aug 2014 12:47:46 +0200 Message-id: <1407235677-26324-19-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1407235677-26324-1-git-send-email-m.szyprowski@samsung.com> References: <1407235677-26324-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKLMWRmVeSWpSXmKPExsVy+t/xq7oLtj0INjj7S9Pi76Rj7BbNi9ez WUy6P4HFYsF+a4vO2RvYLXoXXGWzONv0ht2ic+ISdosvVx4yWWx6fI3V4vKuOWwWM87vY7JY e+Quu8Wp65/ZLP71HmS0OHP6EqvF/z072C0Ov2lntTjycDe7xapdfxgtbv/mcxD1eHJwHpPH 71+TGD12zrrL7jG7Yyarx6ZVnWwe++euYffYvKTe4/a/x8wek28sZ/S4cqKJ1aO3+R2bx5ar 7SwefVtWMXp83iQXwBfFZZOSmpNZllqkb5fAlTH54FWmgil8FQ8mOTYw/uHuYuTgkBAwkTjz 26mLkRPIFJO4cG89WxcjF4eQwFJGiTs/T7CBJIQE+pgkPr62ALHZBAwlut52gRWJCPQySvQ3 /WACcZgF1rFK7O+9zgJSJSxgKzGv6zQTiM0ioCrxtW8WmM0r4Cmx6+kyNoh1chL/X64Ai3MC xQ/fPMAKsc1D4ueGNewTGHkXMDKsYhRNLU0uKE5KzzXSK07MLS7NS9dLzs/dxAiJmq87GJce szrEKMDBqMTDq7D3brAQa2JZcWXuIUYJDmYlEV6JNQ+ChXhTEiurUovy44tKc1KLDzEycXBK NTAWOyWYLHtoGqB6Y/fmC9FX16zfl7QgrMPofVS5eNGsaVnFL90OWyv8nOzB2svYueTBmefX xeVET1d0uDQ26+icOXHgjmzbNGcds6CVs5/fcTCePu2CvbGGLe/OK/+uH47QSt/y8D9fyN/b vm84l6hKxNkvWDbnQ8Pnb8zGMfXBrNdUP6g4cx9VYinOSDTUYi4qTgQA2DnQ63gCAAA= Cc: Rob Herring , Thierry Reding , Shaik Ameer Basha , Arnd Bergmann , Inki Dae , Greg Kroah-Hartman , Joerg Roedel , "Rafael J. Wysocki" , Tomasz Figa , linaro-mm-sig@lists.linaro.org, Kyungmin Park , Kukjin Kim , Laurent Pinchart , Sylwester Nawrocki , Olof Johansson , Cho KyongHo Subject: [Linaro-mm-sig] [PATCH 18/29] iommu: exynos: remove unused functions X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-mm-sig-bounces@lists.linaro.org Sender: linaro-mm-sig-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m.szyprowski@samsung.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 This patch removes two unneeded functions, which are not a part of generic IOMMU API and were never used by any other driver. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 8927923..ec3c882 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -491,13 +491,6 @@ static int __exynos_sysmmu_enable(struct device *dev, phys_addr_t pgtable, return ret; } -int exynos_sysmmu_enable(struct device *dev, phys_addr_t pgtable) -{ - BUG_ON(!memblock_is_memory(pgtable)); - - return __exynos_sysmmu_enable(dev, pgtable, NULL); -} - static bool exynos_sysmmu_disable(struct device *dev) { unsigned long flags; @@ -589,30 +582,6 @@ static void sysmmu_tlb_invalidate_entry(struct device *dev, sysmmu_iova_t iova, spin_unlock_irqrestore(&data->lock, flags); } -void exynos_sysmmu_tlb_invalidate(struct device *dev) -{ - struct exynos_iommu_owner *owner = dev->archdata.iommu; - unsigned long flags; - struct sysmmu_drvdata *data; - - data = dev_get_drvdata(owner->sysmmu); - - spin_lock_irqsave(&data->lock, flags); - if (is_sysmmu_active(data)) { - if (!IS_ERR(data->clk_master)) - clk_enable(data->clk_master); - if (sysmmu_block(data->sfrbase)) { - __sysmmu_tlb_invalidate(data->sfrbase); - sysmmu_unblock(data->sfrbase); - } - if (!IS_ERR(data->clk_master)) - clk_disable(data->clk_master); - } else { - dev_dbg(dev, "disabled. Skipping TLB invalidation\n"); - } - spin_unlock_irqrestore(&data->lock, flags); -} - static int __init exynos_sysmmu_probe(struct platform_device *pdev) { int irq, ret;