From patchwork Tue Sep 16 11:54:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 37449 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 901222057E for ; Tue, 16 Sep 2014 11:55:18 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id n12sf3132658wgh.9 for ; Tue, 16 Sep 2014 04:55:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=akY3fYXje/0Xz70RVLshyZCwvBpDXszMeBBJtWE8oS0=; b=BUVrmTsTWPT5IAqaJ902iPAVqy3O0Qw5PpxAjVmK2cZjZCNcszCCo5G9oK9palxiKq JQPPSKKFbMh2DVWUK8y/uwRzXYHG224HQWBXcI86AjZPMDfeoRebj3In7ux2UxOuoB+1 auLGUzn7OKvugk+l4MUXrrhqsNyhWZb5KjdqT/d2P7Lh3AZVE/SM/bbUT2cZcSNvdjOp xbj1pXpvyrdSoga75atWARBTUbYDsVEO70jKwkgJB8CUNUDpIbXVPyWGw34fvMDDHr5V G84ljuRZrnulptJZ0M8rtnzltxxmTeluDELAlfsSagNaXnFNxVQiX7m2RdMrMZVtk1Ic Ti4A== X-Gm-Message-State: ALoCoQmEooRr0FVm1SaS6D0yTFshyPy/4YN2P/AZxaMoGr6TKosSu0b7M9nMGRmT5ByyfPjle4+h X-Received: by 10.112.170.166 with SMTP id an6mr342126lbc.17.1410868517148; Tue, 16 Sep 2014 04:55:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.44 with SMTP id u12ls433663laz.16.gmail; Tue, 16 Sep 2014 04:55:17 -0700 (PDT) X-Received: by 10.152.20.132 with SMTP id n4mr10968783lae.86.1410868517012; Tue, 16 Sep 2014 04:55:17 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by mx.google.com with ESMTPS id o5si15545542lao.127.2014.09.16.04.55.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Sep 2014 04:55:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by mail-lb0-f169.google.com with SMTP id p9so6371183lbv.14 for ; Tue, 16 Sep 2014 04:55:16 -0700 (PDT) X-Received: by 10.152.22.137 with SMTP id d9mr36264804laf.29.1410868515955; Tue, 16 Sep 2014 04:55:15 -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.112.130.169 with SMTP id of9csp374286lbb; Tue, 16 Sep 2014 04:55:15 -0700 (PDT) X-Received: by 10.66.151.196 with SMTP id us4mr44285282pab.78.1410868514526; Tue, 16 Sep 2014 04:55:14 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zp8si29178866pac.130.2014.09.16.04.55.10 for ; Tue, 16 Sep 2014 04:55:14 -0700 (PDT) Received-SPF: none (google.com: linux-samsung-soc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754344AbaIPLzH (ORCPT + 6 others); Tue, 16 Sep 2014 07:55:07 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:18263 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754326AbaIPLzB (ORCPT ); Tue, 16 Sep 2014 07:55:01 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) 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 <0NBZ00GDIT8DR3B0@mailout3.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 16 Sep 2014 12:57:50 +0100 (BST) X-AuditID: cbfec7f4-b7f156d0000063c7-b2-5418251241db Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 44.38.25543.21528145; Tue, 16 Sep 2014 12:54:58 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NBZ00CMIT3CL960@eusync2.samsung.com>; Tue, 16 Sep 2014 12:54:58 +0100 (BST) From: Marek Szyprowski To: iommu@lists.linux-foundation.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Marek Szyprowski , linaro-mm-sig@lists.linaro.org, Arnd Bergmann , Shaik Ameer Basha , Cho KyongHo , Joerg Roedel , Thierry Reding , Olof Johansson , Laurent Pinchart , Rob Herring , Will Deacon , David Wodhouse , Inki Dae , Kukjin Kim , Tomasz Figa , Kyungmin Park Subject: [PATCH v2 07/18] iommu: exynos: remove unused functions Date: Tue, 16 Sep 2014 13:54:34 +0200 Message-id: <1410868485-4143-8-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1410868485-4143-1-git-send-email-m.szyprowski@samsung.com> References: <1410868485-4143-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOLMWRmVeSWpSXmKPExsVy+t/xK7pCqhIhBp07ZS3+TjrGbjFx5WRm i0n3J7BYLNhvbdE5ewO7Re+Cq2wWZ5vesFt0TlzCbvHlykMmi02Pr7FazDi/j8li7ZG77Ban rn9ms/jXe5DR4v+eHewWRx7uZrdYtesPo8Xt33wWLz+eYHEQ9nhycB6Tx5p5axg9fv+axOix c9Zddo/ZHTNZPTav0PLYtKqTzWPzknqP2/8eM3tMvrGc0ePKiSZWj97md2wefVtWMXp83iQX wBfFZZOSmpNZllqkb5fAlTHxMV/BPL6Kr0/uMzUwtvF0MXJySAiYSPx8O50JwhaTuHBvPVsX IxeHkMBSRokfGz8zgySEBPqYJO6/qwOx2QQMJbredrGB2CIC+RIv9v5lAbGZBd6wSNzbZAhi Cws4SMxc8Iq1i5GDg0VAVeLE0zgQk1fAXeL/gjyIVXIS/1+uAFvLKeAhMbntCdQmd4mP304x TWDkXcDIsIpRNLU0uaA4KT3XUK84Mbe4NC9dLzk/dxMjJDK+7GBcfMzqEKMAB6MSD2/GP/EQ IdbEsuLK3EOMEhzMSiK8GooSIUK8KYmVValF+fFFpTmpxYcYmTg4pRoYrQ2DX9/jjFyuU1V0 gF/+J3ur642IJ6cnVdpIH1PvqY6emtjrqfDiIvuiRQtzJOeFb9kXcOXe52mHZFc9fuLKeFIg +lvHVcP5l8pPRTZpVmzQm2pz73iJUhGL/CLnyuJDzjxHvE2behV6557+vviolPHkOwcsWzcc eilXnzdRVMh5WvFl8wvXlViKMxINtZiLihMBzDjghGoCAAA= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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.217.169 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 73499b05e62e..91feeca56abc 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -490,13 +490,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; @@ -588,30 +581,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;