Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1089831imu; Thu, 22 Nov 2018 09:55:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/UPWcDRlI4GyTwEg17/+siok9PCfJ9Hq1S0OAq1884v6hgTlvZDpk4/67/QRYBsgjzt9INa X-Received: by 2002:a17:902:2c03:: with SMTP id m3mr11889799plb.125.1542909337030; Thu, 22 Nov 2018 09:55:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542909336; cv=none; d=google.com; s=arc-20160816; b=l7+89wAP6jZWx1U8DToOdyJLYu6zyJduQ8LWgmiTO5sy1dgIOz96NWSc8smb04QWSw E0are7a/rEHBY7Ay5h8d1/LsV1poEteaQwdWbw8fCm8+IMiocphm9NIQQK5cRZPWCKd0 WrfrMLpP0lY9H37j190qiB+tcTGjK8vMaiOcJAWQ2YAxOsAW2qGn2wIWeuKo+Loel2BG bZK78ivPdczkwROZGsC4JFNqfXEIGI61R4/+5NOW7PCUw1Qawr31qUCvkch6tWufjB9S xIFYRrsOxz1LgSCU47XO5Zv1JSW8Q+/yuThNZfQfwP6sBJGa7PboqhjAuEsRFlC8tSfP kOTw== 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=VIzCwOWpM1mzD5zjIjribzGd5T0IqjMi/EsPyRsstT0=; b=pZ4qERAEwXo+eo7Sx2imYtfbkkRPMchYbOoZA3qZewRBbdf3xQ9ZNPc/6Ozaa2b9To 9IkkS8WFqT28pQasa7gblPyQsqqfDNSyrRA+s9R3NO21UTdW98omd/nrJwZ1D19dUP/g xCZKdI+Zn/cWI8zuYzqecFW1FLOwFS4zqf929QHWR+qbzExkqx4cD6fNVuZ9ZggZDAmR yFa2K3XA9dBcRAWCk9wXTLfOXytq66LaBOOAEQsIbkVFuud+IRasfxnaixgXdqkRsaox Aels56RT0R9ZTvlJWh4pw4GqQgP7j5ZEo8ahL8kAVej8jqv+s5AzUmKmB4ToUdq9zrFN i8uw== 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 b4-v6si54823353pla.189.2018.11.22.09.55.21; Thu, 22 Nov 2018 09:55:36 -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 S2391440AbeKVPNJ (ORCPT + 99 others); Thu, 22 Nov 2018 10:13:09 -0500 Received: from mail5.windriver.com ([192.103.53.11]:53060 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732270AbeKVPNJ (ORCPT ); Thu, 22 Nov 2018 10:13:09 -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 wAM4XWFe012233 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 21 Nov 2018 20:35:01 -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; Wed, 21 Nov 2018 20:34:23 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Support Opensource Subject: [PATCH 02/11] mfd: da9055-core: make it explicitly non-modular Date: Wed, 21 Nov 2018 23:32:50 -0500 Message-ID: <1542861179-8941-3-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 currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_DA9055 drivers/mfd/Kconfig: bool "Dialog Semiconductor DA9055 PMIC 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. The exit function deleted here wasn't even registered with module_exit, so it truly was dead 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. We replace module.h with init.h and export.h ; the latter since the file does export some symbols Cc: Support Opensource Cc: Lee Jones Signed-off-by: Paul Gortmaker --- drivers/mfd/da9055-core.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/mfd/da9055-core.c b/drivers/mfd/da9055-core.c index 177e65a12c12..b55f13061547 100644 --- a/drivers/mfd/da9055-core.c +++ b/drivers/mfd/da9055-core.c @@ -11,7 +11,8 @@ * option) any later version. */ -#include +#include +#include #include #include #include @@ -416,13 +417,3 @@ int da9055_device_init(struct da9055 *da9055) mfd_remove_devices(da9055->dev); return ret; } - -void da9055_device_exit(struct da9055 *da9055) -{ - regmap_del_irq_chip(da9055->chip_irq, da9055->irq_data); - mfd_remove_devices(da9055->dev); -} - -MODULE_DESCRIPTION("Core support for the DA9055 PMIC"); -MODULE_LICENSE("GPL"); -MODULE_AUTHOR("David Dajun Chen "); -- 2.7.4