Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp783868pxb; Wed, 20 Jan 2021 22:30:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlhiUNNdab7FlVp8M+kIJOheNs3Npx9Ldpp4UWIpPchI5BkCclJakeFWBFOvta0YdgVthI X-Received: by 2002:a17:906:b082:: with SMTP id x2mr7715541ejy.100.1611210641387; Wed, 20 Jan 2021 22:30:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611210641; cv=none; d=google.com; s=arc-20160816; b=cv5FebrWgywguPkzOr58q0/JoouUG7Sj+AgjuS4gI6uECgrSr5cvnWz0oOgBLmyKb6 la5mYQ3MpryILYuycI9YqulPx4qnd4LV/UsjuQbDwNN+1Ufb70oVV3HES/gZ9UTGuHJE aokon60skYbHlT14EibamlqcFbabymq9ZDAizu6O7soXbCoHiGrlxzeccD9icueuB2i7 BD8gPvgFK4ftR50ZnxV2S9OxCl5A7YkCT5l44mQcKr2A/33q54xhefNXns59sXcjncxA WSbk2uxdFopHEKxgQ6bzCX8B/GL/EBuNQFDWLP2hfKgLivjpEy+EZO26O52+C6Il2367 M2eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=7uQeiOXBYx4tYZaXySFoIWzhZC1R6BOEL7wVEUChUN8=; b=qEXpnZpebOehTb8OjRL7lac7P2OClisKWwQZs98+DS1tv5W6s4qFbZWMgaYuGNOup7 CuhUIyr+261fzE3AIoaa9l5xU3hURew+72qM5D+Ebufp5tZc+W5ItVut2y7ddatkOEyo n589B2VRiZpsIU+FzTkgu95fIfS1HxXjaF/8BUKvKtP6jZPR+xecg/o3c7mwhpiBt9EP K63vM6BLJJ9tircKnlMigk5cPYf3NP5ZdVuMHKbZ74OMa4hLuMGrr6y3E7Uo9Imwjeg3 evWev528AwSRvOzW5nshW+jZK2QN67/DeH9EyohVfZPkhQpTY6npAfM5JrY663hHsV4x mEbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e14si1392824ejk.542.2021.01.20.22.30.17; Wed, 20 Jan 2021 22:30:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727030AbhAUG3S (ORCPT + 99 others); Thu, 21 Jan 2021 01:29:18 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:42019 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727072AbhAUG0U (ORCPT ); Thu, 21 Jan 2021 01:26:20 -0500 X-UUID: f4ffa75eb587450db4691b690f47d303-20210121 X-UUID: f4ffa75eb587450db4691b690f47d303-20210121 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 492986384; Thu, 21 Jan 2021 14:25:29 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 21 Jan 2021 14:25:22 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 21 Jan 2021 14:25:21 +0800 From: Yong Wu To: Krzysztof Kozlowski , Matthias Brugger CC: Joerg Roedel , Robin Murphy , Will Deacon , Tomasz Figa , , , , , , , , Nicolas Boichat , , Subject: [PATCH 2/3] memory: mtk-smi: Add module_exit and module_license Date: Thu, 21 Jan 2021 14:24:28 +0800 Message-ID: <20210121062429.26504-3-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210121062429.26504-1-yong.wu@mediatek.com> References: <20210121062429.26504-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 24476291C01264CB107719D7F0A11F842FC2D47325FB94F0AD32DB898B4DCD9F2000:8 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The config MTK_SMI always depends on MTK_IOMMU which is built-in currently. Thus we don't have module_exit before. This patch adds module_exit and module_license. It is a preparing patch for supporting MTK_SMI could been built as a module. Signed-off-by: Yong Wu --- drivers/memory/mtk-smi.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c index e2aebd2bfa8e..aa2a25abf04f 100644 --- a/drivers/memory/mtk-smi.c +++ b/drivers/memory/mtk-smi.c @@ -597,3 +597,13 @@ static int __init mtk_smi_init(void) return platform_register_drivers(smidrivers, ARRAY_SIZE(smidrivers)); } module_init(mtk_smi_init); + +static void __exit mtk_smi_exit(void) +{ + platform_unregister_drivers(smidrivers, ARRAY_SIZE(smidrivers)); +} +module_exit(mtk_smi_exit); + +MODULE_DESCRIPTION("MediaTek SMI driver"); +MODULE_ALIAS("platform:MediaTek-SMI"); +MODULE_LICENSE("GPL v2"); -- 2.18.0