Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2870441imu; Sun, 13 Jan 2019 12:04:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN5fbVHHH0lymzJYMGyasyuowLzhKu4PqC3ZUZRxQqXT7TebirMt+Lp3/abgFomcQsAUbkNu X-Received: by 2002:a62:d448:: with SMTP id u8mr22621295pfl.105.1547409858034; Sun, 13 Jan 2019 12:04:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547409858; cv=none; d=google.com; s=arc-20160816; b=ytEIz8Ha0o/ikWkjzTuCbcfyfd/3BiNxgkLW7OqSzjL+hejGdRjJ/MR6HocTLLOYxh 4b1xnW4J6ngJaulIxJZ/Om4amsu3QMwwkBbsAlx32bXCe3bDlrHH+7Ga8U5ep2PtPEvI FGTQ+90EBUIaLZtdwqY2OoMPDRyZ9NJXNDC8Gyu3U8qVrZTaMUvw9JGQAzPBWFnxJzsr zEVm/8qdFxGJzNLhnqyP1o6w0O3jXSmp1Xc6tpCn0PrkYfGtBrOnv9E/dBXMf3M3aDHt M17Zt11uHuoT0jaXbvJ9ZhLnLZJJMaDO6rS6FceoCdsU3hXJzfl3d3W16T3Lop+0skKw ITsQ== 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=g8IW2lK2YJ3YCra4YxiTbRrF5U2VRsAueFnz+VezOwo=; b=Y1UoalTaCs1LDHTGQ3z8IrEPCTHjILuPtYH3FSFxoZFHGFjrTDd8cywEfYbxW3SCjm TCi/0a9FqScKxgHYupTBPoiUbLTUx61x6Fcx9Je56irybze8ofKMmsyiD695Qy6HpR7z E/x4t4p7CiVxakRfYw4MP3s7H4xKTfoCLHRmAy1D+nc3sNrIILXcXIf02XgghcY7/Y51 HjUfG752NwM/pjmsVGe0XljaSWuhdg2qvZW2qhn39P/O6qlqqqtg9t4tINB++Uhqxl1e E01uErewi+DAhMGnUqr48MRmx0ltwfiZ3kpskjckM/uaq2CUaPV/oI9cD8HpfWCCofgi wHbw== 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 u21si74727056pgm.21.2019.01.13.12.04.02; Sun, 13 Jan 2019 12:04:17 -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 S1726564AbfAMUAF (ORCPT + 99 others); Sun, 13 Jan 2019 15:00:05 -0500 Received: from mail.windriver.com ([147.11.1.11]:65258 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726306AbfAMUAE (ORCPT ); Sun, 13 Jan 2019 15:00:04 -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 x0DIc9pR029093 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 13 Jan 2019 10:38:09 -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; Sun, 13 Jan 2019 10:38:09 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Cory Maccarrone Subject: [PATCH 05/18] mfd: htc-i2cpld: Make it explicitly non-modular Date: Sun, 13 Jan 2019 13:36:36 -0500 Message-ID: <1547404609-14161-6-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1547404609-14161-1-git-send-email-paul.gortmaker@windriver.com> References: <1547404609-14161-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 Acked-by: Linus Walleij --- 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