From patchwork Wed Nov 19 11:15:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 41140 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 42D6D20CBB for ; Wed, 19 Nov 2014 11:16:47 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id s18sf250536lam.10 for ; Wed, 19 Nov 2014 03:16:46 -0800 (PST) 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=+qzu3x4s4B9u4DbaaG126tKuvZynMYVirvpuqY7X0i8=; b=GJcqX76+WMndOr67vi8udqGyza/REJeNfVvcx4dyYmg4OvuUmtCJT5eJQb5NVitzvP hHJSEORd4fM38d3MmO4kWhRDmoKd5ayzB4HCutkaibqgFpaHzmv2LJrpAWZYPY5Hpoig DDAFqXKIABXIIxJGatIvIdV7EiLlXNzT0JsjnECDCAx+IIy0q/YQ2F8MlMF2ug+hk4SX oKRiGoWL7h6I6yiFv4uu2+C5v05j4Y+ZpxgWf41XKb08wPb9QIrv2h7BpyEf+AWPdLmN wAyTruiDiNZQHREMxKXitEYjU7Sqtll+VeNYpK9zTEgYvcJosKfPfgkWiY8PhEVX+UXM qC+g== X-Gm-Message-State: ALoCoQlIupDiJseH1bgC0qv6A3psW2v+iaU++TIwjobmBQs9+c7zE0ObBeiV9IKw5HLrKZMdVzYh X-Received: by 10.195.17.134 with SMTP id ge6mr3990782wjd.2.1416395806255; Wed, 19 Nov 2014 03:16:46 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.197.100 with SMTP id it4ls1434047lac.7.gmail; Wed, 19 Nov 2014 03:16:46 -0800 (PST) X-Received: by 10.152.21.199 with SMTP id x7mr4728603lae.66.1416395806098; Wed, 19 Nov 2014 03:16:46 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id n9si1465327lbc.57.2014.11.19.03.16.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Nov 2014 03:16:46 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by mail-la0-f50.google.com with SMTP id pv20so308005lab.9 for ; Wed, 19 Nov 2014 03:16:46 -0800 (PST) X-Received: by 10.112.14.69 with SMTP id n5mr4857566lbc.34.1416395806020; Wed, 19 Nov 2014 03:16:46 -0800 (PST) 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.184.201 with SMTP id ew9csp64310lbc; Wed, 19 Nov 2014 03:16:45 -0800 (PST) X-Received: by 10.70.129.81 with SMTP id nu17mr7213319pdb.54.1416395801315; Wed, 19 Nov 2014 03:16:41 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xo9si2087857pbc.210.2014.11.19.03.16.40 for ; Wed, 19 Nov 2014 03:16:41 -0800 (PST) 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 S1754508AbaKSLQf (ORCPT + 4 others); Wed, 19 Nov 2014 06:16:35 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39165 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754598AbaKSLQd (ORCPT ); Wed, 19 Nov 2014 06:16:33 -0500 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) 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 <0NFA00LWSA45P540@mailout2.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 19 Nov 2014 11:19:17 +0000 (GMT) X-AuditID: cbfec7f5-b7f956d000005ed7-d4-546c7c0e455c Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 72.B2.24279.E0C7C645; Wed, 19 Nov 2014 11:16:30 +0000 (GMT) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NFA00GC59YMTL30@eusync1.samsung.com>; Wed, 19 Nov 2014 11:16:30 +0000 (GMT) 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 v3 11/19] iommu: exynos: remove unused functions, part 2 Date: Wed, 19 Nov 2014 12:15:40 +0100 Message-id: <1416395748-10731-12-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1416395748-10731-1-git-send-email-m.szyprowski@samsung.com> References: <1416395748-10731-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRmVeSWpSXmKPExsVy+t/xy7p8NTkhBosW8Vn8nXSM3WLiysnM FpPuT2CxWLDf2qJz9gZ2i94FV9kszja9YbfonLiE3eLLlYdMFpseX2O1mHF+H5PF2iN32S1O Xf/MZvGv9yCjxf89O9gtjjzczW6xatcfRovbv/ksXn48weIg7PHk4DwmjzXz1jB6/P41idFj 56y77B6zO2ayemxeoeWxaVUnm8fmJfUet/89ZvaYfGM5o8eVE02sHr3N79g8+rasYvT4vEku gC+KyyYlNSezLLVI3y6BK6Pryj/mgnl8FfsPnWRqYLzF3cXIySEhYCLx/u9edghbTOLCvfVs XYxcHEICSxklZq94yQLh9DFJ3O2dyAxSxSZgKNH1tosNxBYRyJd4sfcvC4jNLPCGReLeJkMQ W1jAQ+LcnK9MIDaLgKrEpn/bWUFsXgFPiXtbJ7JCbJOT+P9yBVANBwcnUPz6C7AxQkCtTdPX sU5g5F3AyLCKUTS1NLmgOCk910ivODG3uDQvXS85P3cTIyQ+vu5gXHrM6hCjAAejEg9vQ3FO iBBrYllxZe4hRgkOZiUR3uJCoBBvSmJlVWpRfnxRaU5q8SFGJg5OqQbGihje6RZJwQXCIi75 Kxl5J8/iqJwpGBUR8ulApYzOmYjJFhE7/WsFRIOVr7RqBi4M+cLlwrDNJo09Y0Ly3tQ1+z1P Ovj6NYnJMummerRytzHNmWbKsLGfdZVEZj1XYtNhXfGwOxIXeJ6oZqh31e7sqdp19rX1jnqG p9OyXrDtfrK5vK95ghJLcUaioRZzUXEiAM8NhT5tAgAA 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.215.50 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 1e7c55191d98..a9616cd64e37 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) {