Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp537157imu; Mon, 26 Nov 2018 14:37:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/WZ66rCSf0nSCzXrKNwi5TgyL2cYe+oQT7IPKECdbV7iU2bEM8bxZO9O24b9kSKIClUWg9e X-Received: by 2002:a63:af18:: with SMTP id w24mr26904835pge.385.1543271839188; Mon, 26 Nov 2018 14:37:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543271839; cv=none; d=google.com; s=arc-20160816; b=FRotXs6ccr+hYd80XH8SOkNz4LHREcAvt/EC82Or4p+wEb5Ab6HKA7CvZMkmaJ7zL/ DVKfNlHMlW/AcnJ33lW9zBjYqSUEkgnBIjgCBj+IK/vyl450syh45Q3BT2e5kdn5E0B+ rFGtr3rViZHxHPilq02cEsS3NTjWKIWupt8WdLc2MCnmAXljJEkeRZoJreItNs41gzJG T29H7RcOxsEcpU7OtgOwsKbuvq07TIcLjc7K3WI99/LAQ55ufrRqeBF+vT1SneZQXmz4 zG2mUcFZ8Ok695HtqfgYSVRTJO/hr2URrQZiZwJW8qopMR47V4bt+1Fj3ZN5JbzJWH/C rEfQ== 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=8rtwX5S+K+LmpPWTyR5eu20VtsN9PPmUmZPwV6aHBpI=; b=vibAlCJX19ekIUGernTUuu/RD8c7owFwO+YF1toHFlPnWskXzdMMjwqLXPIQVuyx0m twFwWRGueBdjzPNDKik2wc0PUGuFl/UR/4/xFhhyqbRDSEEvaK0nLFKTjm2mSbb1Ibni CuKg+6cAjfCPJmrrrtOhqkc4XMJ2QxrjxNSoAMUa0E9w/0gHFN7UqH0v3K54NMDF42LL hHBVPQHCJ9N7G0rdmg+zo5Yt03HEjjSSAcCcWce4tJbQ8nMEYFczl++9VEhQtgq7y5Lo Fzq6uL+yiyarMWmNEiQnzaoD/KORhif85zwVpjZ1Q2wECQawRCfvakc5o29yYF+1X0Qf qnXA== 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 e4si1620029plk.260.2018.11.26.14.37.04; Mon, 26 Nov 2018 14:37:19 -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 S1727534AbeK0Jal (ORCPT + 99 others); Tue, 27 Nov 2018 04:30:41 -0500 Received: from mail5.windriver.com ([192.103.53.11]:59834 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726516AbeK0Jal (ORCPT ); Tue, 27 Nov 2018 04:30:41 -0500 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id wAQMXleK002240 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 26 Nov 2018 14:33:57 -0800 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:36 -0800 From: Paul Gortmaker To: Joerg Roedel CC: , , Paul Gortmaker , Rob Clark , Subject: [PATCH 6/9] iommu: qcom_iommu: make it explicitly non-modular Date: Mon, 26 Nov 2018 17:31:35 -0500 Message-ID: <1543271498-28966-7-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 just becomes device_initcall for non-modules, the init ordering remains unchanged with this commit. Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. 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: Rob Clark Cc: Joerg Roedel Cc: iommu@lists.linux-foundation.org Cc: linux-arm-msm@vger.kernel.org Signed-off-by: Paul Gortmaker --- drivers/iommu/qcom_iommu.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/iommu/qcom_iommu.c b/drivers/iommu/qcom_iommu.c index ee70e9921cf1..4c8f4fc54106 100644 --- a/drivers/iommu/qcom_iommu.c +++ b/drivers/iommu/qcom_iommu.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include #include @@ -908,7 +908,6 @@ static const struct of_device_id qcom_iommu_of_match[] = { { .compatible = "qcom,msm-iommu-v1" }, { /* sentinel */ } }; -MODULE_DEVICE_TABLE(of, qcom_iommu_of_match); static struct platform_driver qcom_iommu_driver = { .driver = { @@ -934,15 +933,4 @@ static int __init qcom_iommu_init(void) return ret; } - -static void __exit qcom_iommu_exit(void) -{ - platform_driver_unregister(&qcom_iommu_driver); - platform_driver_unregister(&qcom_iommu_ctx_driver); -} - -module_init(qcom_iommu_init); -module_exit(qcom_iommu_exit); - -MODULE_DESCRIPTION("IOMMU API for QCOM IOMMU v1 implementations"); -MODULE_LICENSE("GPL v2"); +device_initcall(qcom_iommu_init); -- 2.7.4