From patchwork Mon May 4 08:16:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 6324311 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CD71DBEEE1 for ; Mon, 4 May 2015 08:34:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F16A4202DD for ; Mon, 4 May 2015 08:34:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1B6E5202B8 for ; Mon, 4 May 2015 08:34:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YpBn7-0000PN-IG; Mon, 04 May 2015 08:31:53 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YpBZa-0002xb-1Y for linux-arm-kernel@lists.infradead.org; Mon, 04 May 2015 08:18:00 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NNT008ZBGCXY150@mailout3.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 04 May 2015 09:17:21 +0100 (BST) X-AuditID: cbfec7f4-f79c56d0000012ee-90-55472b111832 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 13.E6.04846.11B27455; Mon, 4 May 2015 09:17:21 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NNT008X3GC52F50@eusync1.samsung.com>; Mon, 04 May 2015 09:17:21 +0100 (BST) From: Marek Szyprowski To: iommu@lists.linux-foundation.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 19/25] iommu: exynos: remove unneeded code Date: Mon, 04 May 2015 10:16:14 +0200 Message-id: <1430727380-10912-20-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1430727380-10912-1-git-send-email-m.szyprowski@samsung.com> References: <1430727380-10912-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmkeLIzCtJLcpLzFFi42I5/e/4ZV1BbfdQg6bNYhZ/Jx1jt5i4cjKz xaT7E1gsFuy3trj2ewabRefsDewWL+5dZLHof/ya2eJs0xt2i86JS9gtvlx5yGSx6fE1VosZ 5/cxWaw9cpfd4tT1z2wW/3oPMlr837OD3eLIw93sFjMmv2SzWLXrD6PF7d98Fi8/nmBxEPN4 cnAek8eaeWsYPX7/msTo8Xd2K7PHzll32T1md8xk9di8Qstj06pONo/NS+o9bv97zOwx+cZy Ro8rJ5pYPXqb37F59G1ZxejxeZNcAH8Ul01Kak5mWWqRvl0CV8afdzNYCy6zVXTNvsnSwHiU tYuRg0NCwETizQmOLkZOIFNM4sK99WxdjFwcQgJLGSUW77oK5TQxSfy/+pYdpIpNwFCi620X G4gtIpAv8WLvXxYQm1ngPavElG+BIEOFBWwlLs3SBwmzCKhK/Hg7A6ycV8BT4uy2CWwQy+Qk /r9cwQRicwLF37VvZwWxhQQ8JM60bmadwMi7gJFhFaNoamlyQXFSeq6hXnFibnFpXrpecn7u JkZIFH3Zwbj4mNUhRgEORiUe3gWy7qFCrIllxZW5hxglOJiVRHiffHQLFeJNSaysSi3Kjy8q zUktPsQozcGiJM47d9f7ECGB9MSS1OzU1ILUIpgsEwenVAOj9P+A4qk96QevvzefvSUueLO9 w8T2CIOUGhat7pchPfx+3Ow7VsZNVl3AbP2Uy+LITtUXH3Tnrr5aO/eFwvLc40uyRDSv660O jSw/tPDPvbUCvsJ3TZWDK15w/Vq9z1K0M8Px9vnwUxMPq+sq1GZ1eWtoP99mNTPwqGvWDenZ a+b0h3jP2BGgxFKckWioxVxUnAgAzhd9g54CAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150504_011754_249234_DC244607 X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: Rob Herring , Thierry Reding , Shaik Ameer Basha , Joonyoung Shim , Arnd Bergmann , Inki Dae , Seung-Woo Kim , Joerg Roedel , Will Deacon , Tomasz Figa , linaro-mm-sig@lists.linaro.org, Kyungmin Park , Kukjin Kim , Laurent Pinchart , Olof Johansson , Javier Martinez Canillas , Cho KyongHo , David Wodhouse , Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Once driver initialization has been moved from initcall to of_xlate() callback, this patch is no longer needed. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 6e6b502ee2c9..821797328c52 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -1126,15 +1126,8 @@ static bool init_done; static int __init exynos_iommu_init(void) { - struct device_node *np; int ret; - np = of_find_matching_node(NULL, sysmmu_of_match); - if (!np) - return 0; - - of_node_put(np); - lv2table_kmem_cache = kmem_cache_create("exynos-iommu-lv2table", LV2TABLE_SIZE, LV2TABLE_SIZE, 0, NULL); if (!lv2table_kmem_cache) {