Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3099692imu; Mon, 17 Dec 2018 13:19:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/VnY1yH663zjbZit42c0U7PxYBxAszeYudpIHwWoFiv3v0uIRSdMrRrx6/ngQihiYxl0CwV X-Received: by 2002:a62:9657:: with SMTP id c84mr14607929pfe.77.1545081540063; Mon, 17 Dec 2018 13:19:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545081540; cv=none; d=google.com; s=arc-20160816; b=IAUtI6iCG6FwKeUw8yx8H1lxcnnh2Jfev8Dr+cFFb5Ao03Z2BF3qRH1a8aDxPx1gfn 9TfhCIR4dIyV0VkcNUzt+NybCG9x+RkJ6d7ivl0k8aryNYjMXfcBLptkM5gldMHpZrD9 tAbKTqHeNXA0ipeK/RyWbOXAWlO/Ujiuf5rIyOyKsFBukOWBpKwAu5xRh+o9kpNSEHDL PXQ0XLmJX5Jmm07LihdbN2lQsSKBTI3APXfuh51hydvlzsyiyonYkfyj0cbBZVGNMw5p Q/3/LLYw4zRocpuPgVSEUB51SJtdUEVrV02x2jPSLXx4DLEA6axcYr0RHzuLEBmHWk+H 6pEg== 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=vaAH66cis1e+ngiqpk2r/h700KYiIBy4XAO5P71ASRA=; b=HrZhOjh8qF3r1sJZ2r2Q9yxbugdt29hMhT3szBUl/MpgAj/v+wePR84aVRAjB5R7r3 P3ycGpYRmpUapSzF6Xv9GegryC9mvOfSpiFl6F3sxnlHGau73BxeltOdJWV06bjgXbv8 cykDeXqUQqr0dsP6w0ZNygqIM54yzuLq9jjNfZHu+dRTCMvXLjRId5EqCfowIALoowPP 9c3Eqo9WCOHRKELEwWK4+8YEKLwGwVt0OQG0IIC6uO6k3E1uRwVMNLiZtEh2De8N0Vps A1yWULNnlEo5iVWVwHZ2YwZAml3uWVGXsTbma9KRox9SRh121vVl0BPyxuIh4MDs8lWq 7HqA== 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 c64si11794971pfg.239.2018.12.17.13.18.45; Mon, 17 Dec 2018 13:19:00 -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 S1732787AbeLQUhw (ORCPT + 99 others); Mon, 17 Dec 2018 15:37:52 -0500 Received: from mail5.windriver.com ([192.103.53.11]:42870 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726758AbeLQUhv (ORCPT ); Mon, 17 Dec 2018 15:37:51 -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 wBHKaDBf030388 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 17 Dec 2018 12:37:19 -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; Mon, 17 Dec 2018 12:37:12 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Linus Walleij , Charles Keepax , Subject: [PATCH 17/18] mfd: wm8350-core: drop unused module infrastructure from non-modular code Date: Mon, 17 Dec 2018 15:31:27 -0500 Message-ID: <1545078688-21217-18-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545078688-21217-1-git-send-email-paul.gortmaker@windriver.com> References: <1545078688-21217-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_WM8350 drivers/mfd/Kconfig: bool ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, so that when reading the driver there is no doubt it is builtin-only. We 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. Previous demodularizaion work has made wm8350_device_exit() no longer used, so it is also removed from the 8350 core code. Cc: Linus Walleij Cc: Charles Keepax Cc: Lee Jones Cc: patches@opensource.cirrus.com Signed-off-by: Paul Gortmaker --- drivers/mfd/wm8350-core.c | 30 ++---------------------------- include/linux/mfd/wm8350/core.h | 1 - 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/drivers/mfd/wm8350-core.c b/drivers/mfd/wm8350-core.c index 8a07c5634aee..9e1070f26b11 100644 --- a/drivers/mfd/wm8350-core.c +++ b/drivers/mfd/wm8350-core.c @@ -13,7 +13,8 @@ */ #include -#include +#include +#include #include #include #include @@ -442,30 +443,3 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq, return ret; } EXPORT_SYMBOL_GPL(wm8350_device_init); - -void wm8350_device_exit(struct wm8350 *wm8350) -{ - int i; - - for (i = 0; i < ARRAY_SIZE(wm8350->pmic.led); i++) - platform_device_unregister(wm8350->pmic.led[i].pdev); - - for (i = 0; i < ARRAY_SIZE(wm8350->pmic.pdev); i++) - platform_device_unregister(wm8350->pmic.pdev[i]); - - platform_device_unregister(wm8350->wdt.pdev); - platform_device_unregister(wm8350->rtc.pdev); - platform_device_unregister(wm8350->power.pdev); - platform_device_unregister(wm8350->hwmon.pdev); - platform_device_unregister(wm8350->gpio.pdev); - platform_device_unregister(wm8350->codec.pdev); - - if (wm8350->irq_base) - free_irq(wm8350->irq_base + WM8350_IRQ_AUXADC_DATARDY, wm8350); - - wm8350_irq_exit(wm8350); -} -EXPORT_SYMBOL_GPL(wm8350_device_exit); - -MODULE_DESCRIPTION("WM8350 AudioPlus PMIC core driver"); -MODULE_LICENSE("GPL"); diff --git a/include/linux/mfd/wm8350/core.h b/include/linux/mfd/wm8350/core.h index 509481d9cf19..202d9bde2c7c 100644 --- a/include/linux/mfd/wm8350/core.h +++ b/include/linux/mfd/wm8350/core.h @@ -643,7 +643,6 @@ struct wm8350_platform_data { */ int wm8350_device_init(struct wm8350 *wm8350, int irq, struct wm8350_platform_data *pdata); -void wm8350_device_exit(struct wm8350 *wm8350); /* * WM8350 device IO -- 2.7.4