Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3099486imu; Mon, 17 Dec 2018 13:18:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/XjXSMXiQvkJe8J5V020dMtHjA4rJ1J6utOQKem1lk7M2ztpSjp0uFTxl1bbuesldfOBebQ X-Received: by 2002:a63:70c:: with SMTP id 12mr13096763pgh.352.1545081525840; Mon, 17 Dec 2018 13:18:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545081525; cv=none; d=google.com; s=arc-20160816; b=jFC2lhBo0ul1ykIUXEjaFXtiVhpmuk70GD9DuNkieQLwVYyAQHM3uFeM7Tyht7/j7u BR6QkUDgvjjlVO9/jBLdCEXf4ezl5BdjqgIBxCB8rXxWi/hCPKoF7SyAHG6NWH1alvl0 BMEWlpp/+/MDLhI2Dr31NG8teEgHOQPHzgVmSsXv2Bosz+R+HfNQxqXszDEJS1NxjxK6 SQiGvxCcuGsLE2TPz/feSDiqScdwnwgS2s3VJ5ESWKy5+2uhgwY34vWoWBs3JHfjAtXi wFEc4w7GdeElsqUKNezUY8NYmJDt7vQ1l+gVLOmZZ/F9dRjaQn7OVDrSzja94BZp68h4 IPNA== 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=q0pojg4bfFLRffqBiXgwNa6L8CbZEPyWnaYDnv1L9lU=; b=x4BpijlZhlf0VkPbVMGfeNujp5Yavfbmx4U/M1WGgrB22ILtqXV51GxCSMvsrxQ7dp 92Q8f6TeYt296/LvIxA1WLv8NM+i/8b1CqxV3nFbq2g3bkY774mv2rzejqsNog/o+2zI O8knEbQH/1eAK3H1K86Ov+OKrW461kFtilwkOrYeXrq95JzSz+7HthXkBlcvM7D1IkyQ WIRg8+Sd+M5h5DmGFw0rh2ueKmvF0mgueCqCAHtzaFZpLhBpsEsC0cJM/FNV63SxZeiF Rj8BSFH4rNAABGIJUmBPaCT2GubuhvPaCsUItrOaN7OgYnz7PlPeLkVFQUkOi5B4zac9 ZKSA== 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 y10si11070224pgp.348.2018.12.17.13.18.30; Mon, 17 Dec 2018 13:18:45 -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 S1732429AbeLQUhQ (ORCPT + 99 others); Mon, 17 Dec 2018 15:37:16 -0500 Received: from mail5.windriver.com ([192.103.53.11]:42836 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727155AbeLQUhP (ORCPT ); Mon, 17 Dec 2018 15:37:15 -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 wBHKaDBZ030388 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 17 Dec 2018 12:36:28 -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:36:02 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Charles Keepax , Subject: [PATCH 15/18] mfd: wm831x-core: drop unused module infrastructure from non-modular code Date: Mon, 17 Dec 2018 15:31:25 -0500 Message-ID: <1545078688-21217-16-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_WM831X 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. Previous demodularizaion work has made wm831x_device_exit() no longer used, so it is also removed from the 831x core code. Cc: Lee Jones Cc: Charles Keepax Cc: patches@opensource.cirrus.com Signed-off-by: Paul Gortmaker Acked-by: Charles Keepax --- drivers/mfd/wm831x-core.c | 15 ++------------- include/linux/mfd/wm831x/core.h | 1 - 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/mfd/wm831x-core.c b/drivers/mfd/wm831x-core.c index e70d35ef5c6d..25fbbaf39cb9 100644 --- a/drivers/mfd/wm831x-core.c +++ b/drivers/mfd/wm831x-core.c @@ -13,7 +13,8 @@ */ #include -#include +#include +#include #include #include #include @@ -1892,14 +1893,6 @@ int wm831x_device_init(struct wm831x *wm831x, int irq) return ret; } -void wm831x_device_exit(struct wm831x *wm831x) -{ - wm831x_otp_exit(wm831x); - mfd_remove_devices(wm831x->dev); - free_irq(wm831x_irq(wm831x, WM831X_IRQ_AUXADC_DATA), wm831x); - wm831x_irq_exit(wm831x); -} - int wm831x_device_suspend(struct wm831x *wm831x) { int reg, mask; @@ -1944,7 +1937,3 @@ void wm831x_device_shutdown(struct wm831x *wm831x) } } EXPORT_SYMBOL_GPL(wm831x_device_shutdown); - -MODULE_DESCRIPTION("Core support for the WM831X AudioPlus PMIC"); -MODULE_LICENSE("GPL"); -MODULE_AUTHOR("Mark Brown"); diff --git a/include/linux/mfd/wm831x/core.h b/include/linux/mfd/wm831x/core.h index b49fa67612f1..6fcb8eb00282 100644 --- a/include/linux/mfd/wm831x/core.h +++ b/include/linux/mfd/wm831x/core.h @@ -418,7 +418,6 @@ int wm831x_bulk_read(struct wm831x *wm831x, unsigned short reg, int count, u16 *buf); int wm831x_device_init(struct wm831x *wm831x, int irq); -void wm831x_device_exit(struct wm831x *wm831x); int wm831x_device_suspend(struct wm831x *wm831x); void wm831x_device_shutdown(struct wm831x *wm831x); int wm831x_irq_init(struct wm831x *wm831x, int irq); -- 2.7.4