Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1022444imu; Thu, 22 Nov 2018 08:53:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/XZfhGH0vch/D8K07vpsQaGIwTdlvI24QOCC+wJJG0kzo5EBp3/H5bS9HpHClOpXw0poNTW X-Received: by 2002:a17:902:7783:: with SMTP id o3mr11000273pll.118.1542905614022; Thu, 22 Nov 2018 08:53:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542905613; cv=none; d=google.com; s=arc-20160816; b=ZKrzkxp1FhH1fsy43VVOhkvYJZEAUm139YDpo1v3kwkoLvX19r2vsstrmBkoSwUExr mC8F0i27Gf820QtImWBhI+JNeNI1kIZXNqTGi0BnF66NpZBcI/+GSrZ23Awrrre7/K67 sujrE/Tz3NdIIp/a6w0LwDoSL785wokRa3YRpaw85bA6d4GVBtwMX0kyMXMBzSeA5VeK yVvVPYZhbx+HLw6YHYQfNAjUkRkkN1eONLvUOMIJMGuLXgikAe8Q94YvEd7vq+WZcCBO 6cQyJrJBJ3OAjEnEY42cAPtiKtrHAEq8VcaxAG7JbpRcShKLxSHsxJtKIKNSDpBkjj/a M/Dg== 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=i5CCxhsviltZKpu9mlSW/yuv23WukZocXxQ58zhFhC8=; b=UUNb4rg1vZ4K1+DgqO/k028CjySA5Qe9WfTVhNfAvXMgJAKt8o3lwcJdrpBWGlhF8I Oi9R97GCWQamz8GnnTfYP2PtVRnEVUlSOCE8SftdpyqOHRCjvpQg1f6PZPBK62CCPWT7 XWo6sXGwRpkdR+Wpxyb7OuSw7I9YIgH1Af+mkRD4tack8o/Y5WD3BXZlQU0gCNY/Vm4c fsXpU1FChj2S6Clsi1AJyWhmi+9o1D++nCUWDpmSjpZ8e51hwMtOIAwVpYKqHjnyxqfx 2U24UunkoZ5cNmieJ8kpV2/No3wjMCeCmVGXz/WvOMK/i9d0qZqjur2OG3z2nt9VSD1v pO8Q== 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 b128si3633191pfa.283.2018.11.22.08.53.18; Thu, 22 Nov 2018 08:53:33 -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 S2388250AbeKVPMj (ORCPT + 99 others); Thu, 22 Nov 2018 10:12:39 -0500 Received: from mail.windriver.com ([147.11.1.11]:59478 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732270AbeKVPMj (ORCPT ); Thu, 22 Nov 2018 10:12:39 -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 wAM4Z22R020122 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 21 Nov 2018 20:35:02 -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; Wed, 21 Nov 2018 20:35:02 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Cory Maccarrone Subject: [PATCH 04/11] mfd: htc-i2cpld: Make it explicitly non-modular Date: Wed, 21 Nov 2018 23:32:52 -0500 Message-ID: <1542861179-8941-5-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542861179-8941-1-git-send-email-paul.gortmaker@windriver.com> References: <1542861179-8941-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 for this option is currently: config HTC_I2CPLD bool "HTC I2C PLD chip 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 translates to device_initcall in the non-modular case, the init ordering remains unchanged with this commit. 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: Cory Maccarrone Cc: Lee Jones Signed-off-by: Paul Gortmaker --- drivers/mfd/htc-i2cpld.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c index 01572b5e79e8..af3c66355270 100644 --- a/drivers/mfd/htc-i2cpld.c +++ b/drivers/mfd/htc-i2cpld.c @@ -27,7 +27,6 @@ #include #include -#include #include #include #include @@ -614,8 +613,6 @@ static const struct i2c_device_id htcpld_chip_id[] = { { "htcpld-chip", 0 }, { } }; -MODULE_DEVICE_TABLE(i2c, htcpld_chip_id); - static struct i2c_driver htcpld_chip_driver = { .driver = { @@ -643,17 +640,4 @@ static int __init htcpld_core_init(void) /* Probe for our chips */ return platform_driver_probe(&htcpld_core_driver, htcpld_core_probe); } - -static void __exit htcpld_core_exit(void) -{ - i2c_del_driver(&htcpld_chip_driver); - platform_driver_unregister(&htcpld_core_driver); -} - -module_init(htcpld_core_init); -module_exit(htcpld_core_exit); - -MODULE_AUTHOR("Cory Maccarrone "); -MODULE_DESCRIPTION("I2C HTC PLD Driver"); -MODULE_LICENSE("GPL"); - +device_initcall(htcpld_core_init); -- 2.7.4