Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp996084imu; Fri, 7 Dec 2018 12:19:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/UZFIqCemJCwBM5YOE4stWzIRh1KSF927O1f1U2NxE9BV+IX0WPPF/iUbHPZ4D+fk6Ji9r7 X-Received: by 2002:a63:ae01:: with SMTP id q1mr3117493pgf.402.1544213951821; Fri, 07 Dec 2018 12:19:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544213951; cv=none; d=google.com; s=arc-20160816; b=HdgZ6TJeJLPxwR6ZOmn41QR9zGzTTZEu/lttOeBHw8ghvDB9z3ao17PSRl3TshtLKo andJ28GXZZfERoEJXaY+/Aq6yZ2rzkVc8jUgqh9PytFjjincstVQVAITtQh+17BlXptE 1Y8bAMe1wPzDgOlmkvt7ftuBRv27uF/Ue6Jc/LxqeEf1U37P1bGCXR3PJ8Gqv4ueQXIK Jw6Z8oKTA11yDlN3bQD2FuMcuzvtTIBIndIvo5EQh562tir1u7R+iIFhYlD58lyloLRm PfJRtZQWlwisyMdBrDn0QNZ3A2zyEKb5W1gNid9O+gFoQYFGrt+oI8va7at8AFWoEf0H u4+A== 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=0rUs/b0O/xkN69Slsw2hwO6AREQv8yo7EZirNk50YO4=; b=BHprF0dD8PHnYlQAkZQ/UGxltkOitAYvXRpDhiHuNT3BgBCdqWMvvfFRHQgdSaRjsn p+ErbjVrkyPfpXKHur/ZPYBVKmu8BcbjE3m9HEyX/XyWDb0QtuRkFD99VrMJqBwlmZyo xtxAPBB+NcGW44Ohr3rrd699VqFE7QnMlfswrl27KI5e6YljLvVzn8S0GLq8TDUhGRtp j/oEDnpa0+fQwXH0q724oOg5imtARi1rRlKtBwkx4gbLgy8n4dzEaKmhmz7W9sVLGxiY e/XZrz09eX0juYko6EoCg+Xto/h/ZjTtif09JQHMdm3Nfw4HUzEFUE2p7TIuUk1w0Yow g9oQ== 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 h7si2833043pls.326.2018.12.07.12.18.56; Fri, 07 Dec 2018 12:19:11 -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 S1726212AbeLGUQT (ORCPT + 99 others); Fri, 7 Dec 2018 15:16:19 -0500 Received: from mail5.windriver.com ([192.103.53.11]:59236 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbeLGUQS (ORCPT ); Fri, 7 Dec 2018 15:16:18 -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 wB7KFG5r031397 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 7 Dec 2018 12:15:31 -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; Fri, 7 Dec 2018 12:15:06 -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: Fri, 7 Dec 2018 15:11:02 -0500 Message-ID: <1544213465-16259-16-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544213465-16259-1-git-send-email-paul.gortmaker@windriver.com> References: <1544213465-16259-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 --- 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