From patchwork Wed Apr 19 19:59:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Gortmaker X-Patchwork-Id: 752449 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 3w7Xvp0WPZz9s03 for ; Thu, 20 Apr 2017 06:01:58 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936473AbdDSUB4 (ORCPT ); Wed, 19 Apr 2017 16:01:56 -0400 Received: from mail5.windriver.com ([192.103.53.11]:37138 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935514AbdDSUBz (ORCPT ); Wed, 19 Apr 2017 16:01:55 -0400 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 v3JK1d11010658 (version=TLSv1 cipher=AES128-SHA bits=128 verify=OK); Wed, 19 Apr 2017 13:01:40 -0700 Received: from yow-lpgnfs-02.wrs.com (128.224.149.8) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.294.0; Wed, 19 Apr 2017 13:01:39 -0700 From: Paul Gortmaker To: CC: Paul Gortmaker , Jesper Nilsson , Lars Persson , Niklas Cassel , Linus Walleij , , Subject: [PATCH] pinctrl: make artpec6 explicitly non-modular Date: Wed, 19 Apr 2017 15:59:05 -0400 Message-ID: <20170419195905.9937-1-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The Kconfig currently controlling compilation of this code is: drivers/pinctrl/Kconfig:config PINCTRL_ARTPEC6 drivers/pinctrl/Kconfig: bool "Axis ARTPEC-6 pin controller driver" ...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. 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 is already contained at the top of the file in the comments. Cc: Jesper Nilsson Cc: Lars Persson Cc: Niklas Cassel Cc: Linus Walleij Cc: linux-arm-kernel@axis.com Cc: linux-gpio@vger.kernel.org Signed-off-by: Paul Gortmaker Acked-by: Jesper Nilsson --- drivers/pinctrl/pinctrl-artpec6.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/pinctrl/pinctrl-artpec6.c b/drivers/pinctrl/pinctrl-artpec6.c index b5a2eff7ae3d..2886e77fbcf0 100644 --- a/drivers/pinctrl/pinctrl-artpec6.c +++ b/drivers/pinctrl/pinctrl-artpec6.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -979,14 +978,3 @@ static int __init artpec6_pmx_init(void) return platform_driver_register(&artpec6_pmx_driver); } arch_initcall(artpec6_pmx_init); - -static void __exit artpec6_pmx_exit(void) -{ - platform_driver_unregister(&artpec6_pmx_driver); -} -module_exit(artpec6_pmx_exit); - -MODULE_AUTHOR("Chris Paterson "); -MODULE_DESCRIPTION("Axis ARTPEC-6 pin control driver"); -MODULE_LICENSE("GPL v2"); -MODULE_DEVICE_TABLE(of, artpec6_pinctrl_match);