Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9363140imu; Wed, 5 Dec 2018 03:40:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/WQbEndRwv+oxYBKE0W/tXapp+V/p8+5J217lqeS2w996XVY4yqiOBh+oafD3R/DG1kffYh X-Received: by 2002:a63:5026:: with SMTP id e38mr20183964pgb.123.1544010024510; Wed, 05 Dec 2018 03:40:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544010024; cv=none; d=google.com; s=arc-20160816; b=s+iFtPms+msqqLbpHBUxfWu3ooA/EhTQv+g7GJ5fMgoHjqmxv7eUWbqeR7nPfj0Cgz qgdtCU5nCl9wHDkArL3XA5Y60ltmZICqtwQNk5YiTgB4ySgb+ndGhG0LvgsHk/tSKxfG rBG0/08Y4sMLz5iB//KhCGxO5dRYtMiITs3fwTaGDqX/BuT1ZAgLDXjWOlxg9WGcPADp SiODvg69GsprTJInn3/NLVKSPLK872hOjnx27enw3G9MOBZqqqROloLsAIE5emfZMBwF 3+qt9AfzxIePLIts7iGgS5DHQxwdLB1pmCEboIU8+oOwZioHyzJQDemXnAB4b52A0unX klAQ== 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=UnWFuqEw21HTPLDW3Dl6I8EOZlS1U6MNzwQ/m6uzO3s=; b=hv1fhxClf80ljMd1VSj+7uclu8AafXYKTojnzJ/enbeFmv6gxkkT750L8KIYyowatn WmKkORq7T5u7ICSAmlEmJZnbIKXbUwwIopDgiC2PUNjzKMJm9tPxXcnOmpJgqzTWi8uC SVslXCciYND70qm9V5TZAVX/nFmRjEm2Im0ZXHCQhTBo2icqJj+NlcT5iswxHCk5GR1u Z1yJDLeE72WjY8vfk881SabtEbRWEAuDyShuIBZQCyqojeuCXLE84R4s7R9sGruI+iwe uiPIcstAglrmGUxK7EjcdbLU0PXpMB7GQUanG8/iLqGJ+JpiF9HmnsQfHT05IoE1nXat MkhQ== 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 z136si18420565pgz.28.2018.12.05.03.40.08; Wed, 05 Dec 2018 03:40:24 -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 S1727565AbeLELiY (ORCPT + 99 others); Wed, 5 Dec 2018 06:38:24 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:36198 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727142AbeLELiY (ORCPT ); Wed, 5 Dec 2018 06:38:24 -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 wB5BT5bq024827; Wed, 5 Dec 2018 05:38:21 -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 2p3qktq2mu-1; Wed, 05 Dec 2018 05:38:21 -0600 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail1.cirrus.com (Postfix) with ESMTP id BED00611C8BB; Wed, 5 Dec 2018 05:38: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:38:20 +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 wB5BcKLj006348; Wed, 5 Dec 2018 11:38:20 GMT Date: Wed, 5 Dec 2018 11:38:20 +0000 From: Charles Keepax To: Paul Gortmaker CC: Lee Jones , , Subject: Re: [PATCH 18/22] mfd: wm831x-i2c: Make it explicitly non-modular Message-ID: <20181205113820.GZ16508@imbe.wolfsonmicro.main> References: <1543811009-15112-1-git-send-email-paul.gortmaker@windriver.com> <1543811009-15112-19-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-19-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=818 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812050106 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:25PM -0500, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/mfd/Kconfig:config MFD_WM831X_I2C > drivers/mfd/Kconfig: bool "Wolfson Microelectronics WM831x/2x PMICs 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. > > Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. > > Cc: Lee Jones > Cc: patches@opensource.cirrus.com > Signed-off-by: Paul Gortmaker > --- > -static int wm831x_i2c_remove(struct i2c_client *i2c) > -{ > - struct wm831x *wm831x = i2c_get_clientdata(i2c); > - > - wm831x_device_exit(wm831x); These patches remove the only callers of wm831x_device_exit, so I guess we should probably remove that function too? Thanks, Charles