From patchwork Tue Sep 16 11:54:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 37460 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BB8B620549 for ; Tue, 16 Sep 2014 12:23:01 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id e53sf3188659eek.2 for ; Tue, 16 Sep 2014 05:23:00 -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=azvmbIx0Y/bwwusMQcUh3fr2bwt3GYc09Ue4U2Ii2Nc=; b=Umi61q1zU0UudCiXGEeetSAhhzC0vIaYLlP+8FHF3szKDv14e2kJhDeoJ1ESN8gsmG ORQDTKMkuqy6WPrkjiO5pnc/RM75785XUQuvhAr+Jpn0DpPbV5ZnXdO6gPtGYK6WaSxu 90HFOUtYpc+MxTrCpQW5NRGZe+aNZwAMJd0rFYt4qdLIYLip18aBQQPrYuMpzR6gdREW hggCFQ9DB8xHSv2J+Wrgp5dSzcoIT8FqUVIQoBTY3wb5+1x9Nr05OGW07WVXkSVbvqlL jAXw3PF4dYdXSUD2vrnV+gu0BZ2iawfYEGHhR+lP5cL3B4UHAiBlhDCLIjIcZjhyazm1 L7rw== X-Gm-Message-State: ALoCoQkJiR96/AhvgrLtVS3gS5k8dsbAbRfFw1E04cGQGautFl1Iv0fR4AupvlgZnlQ7D2AK+HL3 X-Received: by 10.112.64.35 with SMTP id l3mr406457lbs.12.1410868524857; Tue, 16 Sep 2014 04:55:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.165 with SMTP id f5ls485924lam.33.gmail; Tue, 16 Sep 2014 04:55:24 -0700 (PDT) X-Received: by 10.152.3.35 with SMTP id 3mr36492002laz.5.1410868524375; Tue, 16 Sep 2014 04:55:24 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by mx.google.com with ESMTPS id l2si23755920lag.111.2014.09.16.04.55.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Sep 2014 04:55:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id b12so6278781lbj.25 for ; Tue, 16 Sep 2014 04:55:23 -0700 (PDT) X-Received: by 10.112.4.33 with SMTP id h1mr33402023lbh.67.1410868522394; Tue, 16 Sep 2014 04:55:22 -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 of9csp374303lbb; Tue, 16 Sep 2014 04:55:20 -0700 (PDT) X-Received: by 10.66.151.196 with SMTP id us4mr44286163pab.78.1410868520024; Tue, 16 Sep 2014 04:55:20 -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.19 for ; Tue, 16 Sep 2014 04:55:19 -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 S1754320AbaIPLzL (ORCPT + 6 others); Tue, 16 Sep 2014 07:55:11 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:62696 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754324AbaIPLzE (ORCPT ); Tue, 16 Sep 2014 07:55:04 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NBZ006F5T8DGHB0@mailout4.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 16 Sep 2014 12:57:49 +0100 (BST) X-AuditID: cbfec7f4-b7f156d0000063c7-bd-541825155e56 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id E6.38.25543.51528145; Tue, 16 Sep 2014 12:55:01 +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:55:01 +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 10/18] iommu: exynos: remove unused functions, part 2 Date: Tue, 16 Sep 2014 13:54:37 +0200 Message-id: <1410868485-4143-11-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+NgFrrFLMWRmVeSWpSXmKPExsVy+t/xK7qiqhIhBt8bWS3+TjrGbjFx5WRm i0n3J7BYLNhvbdE5ewO7Re+Cq2wWZ5vesFt0TlzCbvHlykMmi02Pr7FazDi/j8li7ZG77Ban rn9ms/jXe5DR4v+eHewWRx7uZrdYtesPo8Xt33wWLz+eYHEQ9nhycB6Tx5p5axg9fv+axOix c9Zddo/ZHTNZPTav0PLYtKqTzWPzknqP2/8eM3tMvrGc0ePKiSZWj97md2wefVtWMXp83iQX wBfFZZOSmpNZllqkb5fAlbHq6Humgnl8Fe/nbGJvYLzF3cXIySEhYCKxfuY6VghbTOLCvfVs ILaQwFJGiVU/o7sYuYDsPiaJBR+/sIAk2AQMJbredoEViQjkS7zY+xcszizwhkXi3iZDEFtY wENi57x9jCA2i4CqxMeDs8EW8ALFX51ogVomJ/H/5QomEJsTKD657QkzxGJ3iY/fTjFNYORd wMiwilE0tTS5oDgpPddQrzgxt7g0L10vOT93EyMkPr7sYFx8zOoQowAHoxIPb8Y/8RAh1sSy 4srcQ4wSHMxKIrwaihIhQrwpiZVVqUX58UWlOanFhxiZODilGhiny8Spq0nn5onUPfwV8dts ytpPwZXVf/w/3b9z+McD05e+Sgt3+y1e8EvCKGq1QsetO5s4xDl3Xt9wxcZ+6964ZPMIzZyQ 2367vV0C2ZWWlR3zti+bPHllanV81tG+sp0bxXjOrndMUZHsj7jts2/Pl1d3bv2z9t73IW1f 85UJFvJRlyZK7pNSYinOSDTUYi4qTgQA8vomnW0CAAA= 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.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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 ef30890f4069..b271348a4ec1 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -457,49 +457,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) {