Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6514399imu; Sun, 2 Dec 2018 20:28:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/WNGAOOE/W0E4knSPl/exuBz/JjFtKZV2ifeH9Ju7mfpqIm5fRmi3g2qPopl8o5umRi2uU/ X-Received: by 2002:a62:e30d:: with SMTP id g13mr14310621pfh.151.1543811311014; Sun, 02 Dec 2018 20:28:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543811310; cv=none; d=google.com; s=arc-20160816; b=W3yaXAxh+aXtAUU/mXilcJrSuPzD5KNmc7BkPVIsZjeJYJhf5AnhH9bi875rTSHy5d dRrvlKD6mmLvXQIgJZwqUd+zHlD821j9qhZudkSqOeU8hGgZRnTpi93ot0oqT7et88ck r1lAF5IIGj1lN3bjJigMT27+6t1v4CxS2LavdD02nKBWgGrBT+aIy87j17hQoWfBH+l0 4P8mGixPZ8kVEeZP+CPhDaz9fNYpqS2G2MLkboU40s2uKLOrR5pEAAh39jRVGnLxT9uM 0qw3VfReXNsoK6YhD8Gc6swdQWZ5wvu5ZZ3tMKKbdaTYkLTGwBWMA3nNDBTbn2J2UpaK nG0Q== 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=Img4NF385lk8q9l1hqmZI1Zairs4UeUzLThAZyz5rcqMN2aCa1cr0I15vf+ucb0yUL XtTtaohmuOsIvMy2EDwENObuZmTZ8EcuMPx3CGBp2+NLFo8PLbflK4pml0S/YyCLuXRY B83W1mr1U3XPAMmjYtlAxsIZX4DcTbl8ca968wQzLhfXxsF0INo3mflnlX/71mlWjWIC Qy7Ekaa7VDtOyao1fDE+gFCU//b3m66dLT2bshv/CLJhNrFW8zSz5lOcfmMXV5YgxoZI Zr9AJmSm+oJpcq/watjcNy2sogxlfBJiA2f2bpJDkk2w1obM8qYhgrh4pM1S0eVSx2mg vb3A== 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 p9si14699123pll.63.2018.12.02.20.28.16; Sun, 02 Dec 2018 20:28:30 -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 S1726033AbeLCE0M (ORCPT + 99 others); Sun, 2 Dec 2018 23:26:12 -0500 Received: from mail5.windriver.com ([192.103.53.11]:55222 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725811AbeLCE0M (ORCPT ); Sun, 2 Dec 2018 23:26:12 -0500 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 wB34PJnT018227 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 2 Dec 2018 20:25:29 -0800 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, 2 Dec 2018 20:25:08 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Cory Maccarrone Subject: [PATCH 09/22] mfd: htc-i2cpld: Make it explicitly non-modular Date: Sun, 2 Dec 2018 23:23:16 -0500 Message-ID: <1543811009-15112-10-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543811009-15112-1-git-send-email-paul.gortmaker@windriver.com> References: <1543811009-15112-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