Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp536094imu; Mon, 26 Nov 2018 14:36:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/VOU37FL82Ru8U/EcXUp2k1ItBD1kIBtyd5QX7AVHnL7vKDsakJ2lFoLky05qzhUkksE2g1 X-Received: by 2002:a63:495b:: with SMTP id y27mr26771110pgk.32.1543271768074; Mon, 26 Nov 2018 14:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543271768; cv=none; d=google.com; s=arc-20160816; b=VNoBbLDi97JaBOf1MRbkQRKY5vPFWpYhsat/1wukaE1gvOhgpN3jIiaEDDeKIRXcoB 1OQV6mRpOJPV4mILbJ7OVnSgA43wlPwydsTwvtJ8+4jW9tLJ99nUanuuSsri/+VCKNF5 6+DaUhWqJA1SdbcRMwILbE1jD8/QVo+0LMg3lr/Rp44/mqeE3eboRAK7fsttNGXHgIRi WZc/SHhoERs1vsEJy5SNkVXVpLGpRQJ8wPqsweZx2kcqyT0XwlbANGqCeghE/PmAZgCf Saz23KwjTuXA17hzP7+n7Wnj/9XhZ+oMmy0lX8Vmh/yoiExIcjb1tVK6op8r+pGFJOR0 UGYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=rbwCqEAYYAPMgmm9//vhhdEmSdSS7IzjXvk3ej2KM2s=; b=iorclDlU8wU5Pe4R019A/ZwsQeOBapVfFqXeyiKMCgmVsujaTMPtgkQo6ebAygezhs x0rYkXdwZnmX1zxyUTFkE2CujMGBuhZsAIMeqQy2WzwLsemQ6Ft3xobPGppBdjXjRtk1 +82TMAQ6uUW+Sv+eEyKIgwYOZ92jnQJK2e95702XEwqhe0Md8GMu3hgQA3eMhFIBOCdn DwsHul3uUITiuCy5invnRWfrCbj0g1HZmo5UYbLWPuwshpJR9DEG2UJ0lGVSOTJgPKl1 p+EnrGKN/U65hiS94zyLC05K1p4Nx5Fb9oxIWs3mm4aaWCHXlRBLIkLVFgnVFk5XC32H /i/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7si1591512plz.280.2018.11.26.14.35.53; Mon, 26 Nov 2018 14:36:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727437AbeK0J3g (ORCPT + 99 others); Tue, 27 Nov 2018 04:29:36 -0500 Received: from mail.windriver.com ([147.11.1.11]:49909 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbeK0J3g (ORCPT ); Tue, 27 Nov 2018 04:29:36 -0500 Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id wAQMXWI9007338 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 26 Nov 2018 14:33:32 -0800 (PST) Received: from yow-cube1.wrs.com (128.224.56.98) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.408.0; Mon, 26 Nov 2018 14:33:32 -0800 From: Paul Gortmaker To: Joerg Roedel CC: , , Paul Gortmaker , Matthias Brugger , Honghui Zhang , Subject: [PATCH 4/9] iommu: mtk_iommu: make it explicitly non-modular Date: Mon, 26 Nov 2018 17:31:33 -0500 Message-ID: <1543271498-28966-5-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543271498-28966-1-git-send-email-paul.gortmaker@windriver.com> References: <1543271498-28966-1-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Kconfig currently controlling compilation of this code is: drivers/iommu/Kconfig:config MTK_IOMMU_V1 drivers/iommu/Kconfig: bool "MTK IOMMU Version 1 (M4U gen1) Support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only. Since module_init was not even used by this driver, the init ordering remains unchanged with this commit. We also delete the MODULE_LICENSE tag etc. since all that information was (or is now) contained at the top of the file in the comments. Cc: Joerg Roedel Cc: Matthias Brugger Cc: Honghui Zhang Cc: iommu@lists.linux-foundation.org Cc: linux-mediatek@lists.infradead.org Signed-off-by: Paul Gortmaker --- drivers/iommu/mtk_iommu_v1.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c index 27867b862d7a..5fbf3cecb87f 100644 --- a/drivers/iommu/mtk_iommu_v1.c +++ b/drivers/iommu/mtk_iommu_v1.c @@ -1,4 +1,6 @@ /* + * IOMMU API for MTK architected m4u v1 implementations + * * Copyright (c) 2015-2016 MediaTek Inc. * Author: Honghui Zhang * @@ -35,7 +37,7 @@ #include #include #include -#include +#include #include #include #include "mtk_iommu.h" @@ -704,15 +706,4 @@ static int __init m4u_init(void) { return platform_driver_register(&mtk_iommu_driver); } - -static void __exit m4u_exit(void) -{ - return platform_driver_unregister(&mtk_iommu_driver); -} - subsys_initcall(m4u_init); -module_exit(m4u_exit); - -MODULE_DESCRIPTION("IOMMU API for MTK architected m4u v1 implementations"); -MODULE_AUTHOR("Honghui Zhang "); -MODULE_LICENSE("GPL v2"); -- 2.7.4