Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9363567imu; Wed, 5 Dec 2018 03:40:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/UWugVaBxXvA7WE2lqXBuK1nJR6mql1eAOxqyMmRt17OPo/hZa1jk4lwKd6q8ovVCN/xweN X-Received: by 2002:a17:902:264:: with SMTP id 91mr23244624plc.108.1544010056327; Wed, 05 Dec 2018 03:40:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544010056; cv=none; d=google.com; s=arc-20160816; b=lGSFG436+YvSOWx5uAUg1xZlj0J38MV+MoECK5aNWIY76MeQsrTzv9LfXJ/bSnzOIl hD9+QIDYmJuQQ6ccTqnUwjIjXQ/umOrxO/kuO4WP8T2cy8EUzdsIdlxsHZtmuWvXtdzq /8+X70DdB6hzQK1gVpbcLunc7f/zVBd7ewL5In1auanUX/POo2AON9kEtrqnE+DcP+2j MMjsg8iHI+na0jKUTXx7rofXJUnSayZGYzR3qSbcASIq38Vvxks4/aQ13cHfCaKL8QgG O1YoRtTuhNaoZWcTM/EajipHek9Mdag4CCL+OJFDrm+3imOpGrfoeHJHn+Do5RKI43H/ Nn1Q== 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=ZWioD7M2NPHOEs/jF8ZJSG6jUvUYe4vGCg/QKmAwoMc=; b=f+ezOa0EFY7V6ICEolHXqGjTElcgOahmUTZ1FOh2FoCslNM4IDTLgO9d3/tskmYykA beVh9XohgMn4mXNKGZtUrmC2uxv/rJAbDAu24ZRx1igdJJ7+PXmw/fapNnv/FeptYiFO C1n8PiC5D8JrTJvqukDhg+DjUQSlmws4ubpNal4pPAAhByBpKPn5YUKOHcPzqc25t+aS K8rbZRliy/8i4tgF9r7DhOa+bUGp3kL0Z0ihscNcb0Cfcck7bsocbRzVWbG9OsVUJ1h+ bMOd4p/LBKgd2ppicWZX1IkiCQNNqaT4inA8JrTqHw9cZc+5WWKWDY8QGRqdJuSiumRz jFYg== 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 w11si20672341pfk.210.2018.12.05.03.40.41; Wed, 05 Dec 2018 03:40:56 -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 S1727668AbeLELj1 (ORCPT + 99 others); Wed, 5 Dec 2018 06:39:27 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:36278 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727084AbeLELj0 (ORCPT ); Wed, 5 Dec 2018 06:39:26 -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 wB5BdOi4032434; Wed, 5 Dec 2018 05:39:24 -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 2p3qktq2nm-1; Wed, 05 Dec 2018 05:39:23 -0600 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail1.cirrus.com (Postfix) with ESMTP id 068A7611C8C2; Wed, 5 Dec 2018 05:39:20 -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; Wed, 5 Dec 2018 11:39:19 +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 wB5BdJvw006393; Wed, 5 Dec 2018 11:39:19 GMT Date: Wed, 5 Dec 2018 11:39:19 +0000 From: Charles Keepax To: Paul Gortmaker CC: Lee Jones , , Subject: Re: [PATCH 20/22] mfd: wm8350-i2c: Make it explicitly non-modular Message-ID: <20181205113919.GA16508@imbe.wolfsonmicro.main> References: <1543811009-15112-1-git-send-email-paul.gortmaker@windriver.com> <1543811009-15112-21-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1543811009-15112-21-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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812050108 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 02, 2018 at 11:23:27PM -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 > 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); > - > - return 0; > -} Likewise here it removes the only caller of wm8350_device_exit. Thanks, Charles