From patchwork Fri Jun 17 00:37:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Gortmaker X-Patchwork-Id: 636733 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3rW1b05mgYz9t0W for ; Fri, 17 Jun 2016 10:38:52 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754811AbcFQAib (ORCPT ); Thu, 16 Jun 2016 20:38:31 -0400 Received: from mail1.windriver.com ([147.11.146.13]:46948 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753967AbcFQAia (ORCPT ); Thu, 16 Jun 2016 20:38:30 -0400 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id u5H0cNLi007742 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 16 Jun 2016 17:38:23 -0700 (PDT) Received: from yow-lpgnfs-02.corp.ad.wrs.com (128.224.149.8) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.248.2; Thu, 16 Jun 2016 17:38:23 -0700 From: Paul Gortmaker To: CC: Paul Gortmaker , Stephen Warren , Thierry Reding , Alexandre Courbot , Hiroshi DOYU , Subject: [PATCH 4/6] memory: tegra20-mc: make it explicitly non-modular Date: Thu, 16 Jun 2016 20:37:46 -0400 Message-ID: <20160617003748.12188-5-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20160617003748.12188-1-paul.gortmaker@windriver.com> References: <20160617003748.12188-1-paul.gortmaker@windriver.com> MIME-Version: 1.0 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org The Kconfig currently controlling compilation of this code is: drivers/memory/Kconfig:config TEGRA20_MC drivers/memory/Kconfig: bool "Tegra20 Memory Controller(MC) driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple of traces of modular references, so that when reading the driver there is no doubt it is builtin-only. Since module_platform_driver() uses the same init level priority as builtin_platform_driver() the init ordering remains unchanged with this commit. Also note that MODULE_ALIAS 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: Stephen Warren Cc: Thierry Reding Cc: Alexandre Courbot Cc: Hiroshi DOYU Cc: linux-tegra@vger.kernel.org Signed-off-by: Paul Gortmaker --- drivers/memory/tegra20-mc.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/memory/tegra20-mc.c b/drivers/memory/tegra20-mc.c index cc309a05289a..098f1b4dd4b7 100644 --- a/drivers/memory/tegra20-mc.c +++ b/drivers/memory/tegra20-mc.c @@ -1,6 +1,8 @@ /* * Tegra20 Memory Controller * + * Author: Hiroshi DOYU + * * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it @@ -19,7 +21,7 @@ #include #include -#include +#include #include #include #include @@ -246,9 +248,4 @@ static struct platform_driver tegra20_mc_driver = { .of_match_table = tegra20_mc_of_match, }, }; -module_platform_driver(tegra20_mc_driver); - -MODULE_AUTHOR("Hiroshi DOYU "); -MODULE_DESCRIPTION("Tegra20 MC driver"); -MODULE_LICENSE("GPL v2"); -MODULE_ALIAS("platform:" DRV_NAME); +builtin_platform_driver(tegra20_mc_driver);