From patchwork Tue Aug 5 10:47:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 34931 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 085B920523 for ; Tue, 5 Aug 2014 10:50:40 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id y10sf4687199pdj.4 for ; Tue, 05 Aug 2014 03:50:40 -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=LB/VECIplJJV7qXCSi9jPyjeI7Gzaemkkjalu5f2LXc=; b=cesBcsRt5BrQpgfkRPyARc09rkj0EOQYn2BZ5Yq/4D/XDML4T9KBQ9Gi3BTqahK2Pr izZF0U4T9Nuwa3G2N7jjGeME9Ym8n/b37QbGDXr2z3spzVG+RFdnDVBiYioRPunpzAm0 rHtw6UQ6eGrP9xsA8vkZCMgTG+BliyJivHO1ELWcELDtVOScZDQWCw4xT658RKziR90q V7T8+T15oiU2lUiIBCD8yBizOgrIvHP2vw8RbzuQrfZF72yC4SN2eUL11W0yL/oYsM87 Mt6X0UY/FxoWAVaBQXj/WzB5hX/CTbpsNV/R8oLQqhf+WXLDuaSTIOiVvWNApLKgyAzh hy6w== X-Gm-Message-State: ALoCoQnQGYSQHVtQsoPU+wU6heBz5dMN9QN1JsNDN8i2xFKkYoj78yTFFojvSYWPk8akMOxIU6E5 X-Received: by 10.69.31.75 with SMTP id kk11mr1567150pbd.8.1407235840358; Tue, 05 Aug 2014 03:50:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.39 with SMTP id u36ls31732qgu.63.gmail; Tue, 05 Aug 2014 03:50:40 -0700 (PDT) X-Received: by 10.52.246.198 with SMTP id xy6mr1962192vdc.7.1407235840209; Tue, 05 Aug 2014 03:50:40 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id da3si769454vcb.102.2014.08.05.03.50.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Aug 2014 03:50:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ij19so1082224vcb.25 for ; Tue, 05 Aug 2014 03:50:40 -0700 (PDT) X-Received: by 10.220.122.132 with SMTP id l4mr2284195vcr.41.1407235840106; Tue, 05 Aug 2014 03:50:40 -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 tc5csp374663vcb; Tue, 5 Aug 2014 03:50:39 -0700 (PDT) X-Received: by 10.140.109.101 with SMTP id k92mr3873570qgf.57.1407235839599; Tue, 05 Aug 2014 03:50:39 -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 ju9si2122430qcb.25.2014.08.05.03.50.39 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 05 Aug 2014 03:50:39 -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 1XEcKE-0005UA-Dy; Tue, 05 Aug 2014 10:50:38 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XEcIl-0005FQ-RT for linaro-mm-sig@lists.linaro.org; Tue, 05 Aug 2014 10:49:07 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N9T00MLSY1DQI90@mailout2.w1.samsung.com> for linaro-mm-sig@lists.linaro.org; Tue, 05 Aug 2014 11:48:49 +0100 (BST) X-AuditID: cbfec7f4-b7f156d0000063c7-db-53e0b6a3a028 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 2E.1C.25543.3A6B0E35; Tue, 05 Aug 2014 11:49:07 +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:07 +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:49 +0200 Message-id: <1407235677-26324-22-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+NgFnrOLMWRmVeSWpSXmKPExsVy+t/xq7qLtz0INtgyT9Di76Rj7BbNi9ez WUy6P4HFYsF+a4vO2RvYLXoXXGWzONv0ht2ic+ISdosvVx4yWWx6fI3V4vKuOWwWM87vY7JY e+Quu8Wp65/ZLP71HmS0OHP6EqvF/z072C0Ov2lntTjycDe7xapdfxgtbv/mcxD1eHJwHpPH 71+TGD12zrrL7jG7Yyarx6ZVnWwe++euYffYvKTe4/a/x8wek28sZ/S4cqKJ1aO3+R2bx5ar 7SwefVtWMXp83iQXwBfFZZOSmpNZllqkb5fAlXFk5UKmgil8Ffv7VzM3MF7g7mLk5JAQMJHY 9OsyE4QtJnHh3nq2LkYuDiGBpYwSnfNvMUI4fUwST04uZAOpYhMwlOh62wVWJSLQyyjR3/SD CcRhFljHKrG/9zoLSJWwgKvErNfTmLsYOThYBFQlZszTBQnzCnhKbH/fxgyxTk7i/8sVYKs5 geKHbx5gBbGFBDwkfm5Ywz6BkXcBI8MqRtHU0uSC4qT0XEO94sTc4tK8dL3k/NxNjJDI+bKD cfExq0OMAhyMSjy8BqfvBguxJpYVV+YeYpTgYFYS4ZVY8yBYiDclsbIqtSg/vqg0J7X4ECMT B6dUA6NPwrlIs2+uj7albUuTaMu7vzo1wXCP1kbfx/v1Wj/Kf3qQYciv7+Y/bR7D2WiLWqb8 qLjnhrx3P/mfu/M8JMmbxb9K+WD82zMyGc9lOg+wyb49NLV+q9Ga4y/1Ln/rXP4lgWua6T73 3DO5h+4YLXH4uea0rsaT+1093FeTL/z9rG25db7B5yolluKMREMt5qLiRAA3AZvwegIAAA== 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 21/29] iommu: exynos: remove unused functions, part 2 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.180 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 After refactoring functions to use pointer to struct sysmmu_drvdata directly, some functions became useless and thus never used, so remove them completely. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 43 ------------------------------------------- 1 file changed, 43 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 018a615..674d1fb 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -458,49 +458,6 @@ static int __sysmmu_enable(struct sysmmu_drvdata *data, return ret; } -/* __exynos_sysmmu_enable: Enables System MMU - * - * returns -error if an error occurred and System MMU is not enabled, - * 0 if the System MMU has been just enabled and 1 if System MMU was already - * enabled before. - */ -static int __exynos_sysmmu_enable(struct device *dev, phys_addr_t pgtable, - struct iommu_domain *domain) -{ - int ret = 0; - unsigned long flags; - struct exynos_iommu_owner *owner = dev->archdata.iommu; - struct sysmmu_drvdata *data; - - BUG_ON(!has_sysmmu(dev)); - - data = dev_get_drvdata(owner->sysmmu); - - ret = __sysmmu_enable(data, pgtable, domain); - if (ret >= 0) - data->master = dev; - - return ret; -} - -static bool exynos_sysmmu_disable(struct device *dev) -{ - unsigned long flags; - bool disabled = true; - struct exynos_iommu_owner *owner = dev->archdata.iommu; - struct sysmmu_drvdata *data; - - BUG_ON(!has_sysmmu(dev)); - - data = dev_get_drvdata(owner->sysmmu); - - disabled = __sysmmu_disable(data); - if (disabled) - data->master = NULL; - - return disabled; -} - static void __sysmmu_tlb_invalidate_flpdcache(struct sysmmu_drvdata *data, sysmmu_iova_t iova) {