Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2870240imu; Sun, 13 Jan 2019 12:04:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN7lLWruNicA7yyVj5n2ObMUZO5CKRzKTd89BFssAZ4FwXcmT2U8EuZZpyzO11Ad4Xt9pQdn X-Received: by 2002:a62:2702:: with SMTP id n2mr23183794pfn.29.1547409842417; Sun, 13 Jan 2019 12:04:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547409842; cv=none; d=google.com; s=arc-20160816; b=qpG6/Xna4OSdCOjWlF18MmB9DCzzUaehENvem6xDjTs7vWxhDkzd1GJvlNWRPAQNQm 3laOrW3lNDx7nOOwj2eGbofGWGcOh//D/2s3EVPbcwD1Y2lepWzKtV328rlhsWSjnJE6 3hEWMUcGKziLdmEw27jzyXYbRv8v6IoSXmfCLtC4mAzJ5sEbMKZ4lsU0IuZLzpG5YXrt eRHo6HEMl1ds4rHxpgAIFSiRB2gleEyzTuMusUVWoZ5+f98sGvCuVsQepPQ6m3Nztnb2 vIpfhwZvp7utekSumrtp6ac3GpxUUgmHBHNGoseGjuotfW7Ddr9QKT94inJkixUGXyqj 3FSA== 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=usAjdFL3cBIcWtBbourRnJfh+IVoo1+JZ25Q9rFF4IDvf+ZGQzYmpT1CWXbT9tgJu6 yeXl+0zs/x/59RmEPKHn4CXkb0vVqZzgDjbV+/nvF47HlPg63XdlSe6wVjDvIm/9FwpA O2IiXFD1vhlU9Xa77YhMwMObFXUrBN1d91Eway1xJTmVvzfY6ct5NYdSU//MAPQadfBA lkwjOwLBwfFPapMLTYBMNGIGr8GXqksDO6CH1lVGuBxv1ps2N2E9M1OXiNIOJ3Bu3Yqv BJC1WsZifr24Yhk298pdv3rFYPI4NrhGH5LAqIyXbOCdDYpOd07KGjHHH+DHwbTIdKGn IZYQ== 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 126si37975423pff.77.2019.01.13.12.03.46; Sun, 13 Jan 2019 12:04:02 -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 S1726833AbfAMUBE (ORCPT + 99 others); Sun, 13 Jan 2019 15:01:04 -0500 Received: from mail5.windriver.com ([192.103.53.11]:47592 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbfAMUA4 (ORCPT ); Sun, 13 Jan 2019 15:00:56 -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 x0DIdtvO025176 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 13 Jan 2019 10:40:11 -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, 13 Jan 2019 10:39:45 -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: Sun, 13 Jan 2019 13:36:46 -0500 Message-ID: <1547404609-14161-16-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1547404609-14161-1-git-send-email-paul.gortmaker@windriver.com> References: <1547404609-14161-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