Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3411488imu; Mon, 10 Dec 2018 01:32:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/WMk7rLFaj3H6p9lBO7d/4CLv0SiJjeC60IEvQgtPPOGdKymtFida/YzAEAPRnia7v/pOqr X-Received: by 2002:a63:5b1f:: with SMTP id p31mr10190807pgb.56.1544434357137; Mon, 10 Dec 2018 01:32:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544434357; cv=none; d=google.com; s=arc-20160816; b=v6+rvWrFWfQyS5d3rxVgDr5lSsae56CkhU2eZecEDWRgTMk/LQQ5hrbH0vsNFcsKrJ 9rAIkTeAM/oDr4k5uiFAI34itN2chjnwUVQSMtY1fBON6oui27UUqbkr3ditkXs9vul4 BVUPxydjQ62XPm2KMDxtg5XdEKx9q50j7/P3Y8mkwPFJmy4QpJxRR2zsbTIYUpql4+Vw zOLGY/KWlxVNCyAa56bnCciOiv8/0xJPSskRiFMn6HIgtpebMAqvgfkdjiPQRojB6nZQ gBoGzCoVhTfcbMaipDhOETA/AzUdRJeWJhBwtmXsqhofx/0JTdyxoS0PWuMA2jpMkotZ 9tvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uFjzZJloqTK0spT4sveA/D8g3z0aF/pQEQ9mMJS2aXw=; b=jE3OF1aFZF4lh8yfRnY53u2P/BSXn9c3Nht7GVoBNXYJZ3mv5nUrVm2zGi8/XjjOh4 a0atMgUGMkpqYH0nx0nFbCR8K/8tyupNg4vbBgN7U+ENMxh9McVk6fAX2IHaPWJpqZxz XScdl7KlZM/YvkE/ZIfZzs6XnBlyh+62Wlls9xO4lFC8sx3bLBq2Cyno8byzYbbXJ+50 XGoEB2j/f3gWivhk0M2S+0fEDGjjBM2bll+EiZ+aJDrvwocdhQBg9+Qi8VVnY39lDCiN wwouEi3yVeBsKgX1n/DLfTZsmn+ZaubFSde4kJc7FZ2k1efwCx1+GR/ptI4obB3MJMo1 ynuw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si9489173pls.348.2018.12.10.01.32.21; Mon, 10 Dec 2018 01:32:37 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727071AbeLJJ2M (ORCPT + 99 others); Mon, 10 Dec 2018 04:28:12 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:54502 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbeLJJ2M (ORCPT ); Mon, 10 Dec 2018 04:28:12 -0500 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wBA9Ot5k028752; Mon, 10 Dec 2018 03:28:10 -0600 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail1.cirrus.com (mail1.cirrus.com [141.131.3.20]) by mx0b-001ae601.pphosted.com with ESMTP id 2p8b8vt74r-1; Mon, 10 Dec 2018 03:28:10 -0600 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail1.cirrus.com (Postfix) with ESMTP id 956DD611C8B7; Mon, 10 Dec 2018 03:28:09 -0600 (CST) Received: from imbe.wolfsonmicro.main (198.61.95.81) by EX17.ad.cirrus.com (172.20.9.81) with Microsoft SMTP Server id 14.3.408.0; Mon, 10 Dec 2018 09:28:09 +0000 Received: from imbe.wolfsonmicro.main (imbe.wolfsonmicro.main [198.61.95.81]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id wBA9S8VZ023996; Mon, 10 Dec 2018 09:28:08 GMT Date: Mon, 10 Dec 2018 09:28:08 +0000 From: Charles Keepax To: Paul Gortmaker CC: Lee Jones , , Subject: Re: [PATCH 16/18] mfd: wm8350-i2c: Make it explicitly non-modular Message-ID: <20181210092808.GN16508@imbe.wolfsonmicro.main> References: <1544213465-16259-1-git-send-email-paul.gortmaker@windriver.com> <1544213465-16259-17-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1544213465-16259-17-git-send-email-paul.gortmaker@windriver.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=968 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812100087 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 07, 2018 at 03:11:03PM -0500, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/mfd/Kconfig:config MFD_WM8350_I2C > drivers/mfd/Kconfig: bool "Wolfson Microelectronics WM8350 with I2C" > > ...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. > > We explicitly disallow a driver unbind, since that doesn't have a > sensible use case anyway, and it allows us to drop the ".remove" > code for non-modular drivers. > > Since module_init was not in use by this code, the init ordering > remains unchanged with this commit. > > We don't replace module.h with init.h since the file already has that. > But we do delete an unused moduleparam.h > > Also note that MODULE_DEVICE_TABLE is a no-op for non-modular 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. > > Cc: Lee Jones > Cc: patches@opensource.cirrus.com > Acked-by: Linus Walleij > Signed-off-by: Paul Gortmaker > --- > -static int wm8350_i2c_remove(struct i2c_client *i2c) > -{ > - struct wm8350 *wm8350 = i2c_get_clientdata(i2c); > - > - wm8350_device_exit(wm8350); This is the only caller of this function so you probably want to remove it in the next patch as we did for the 831x stuff. Thanks, Charles