Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1395653pxy; Sun, 1 Aug 2021 23:56:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydSUTpAQ58RySQ4w53ljfJ9+w/qywVLe1R47goCWlm4bOkinHpIovlY3O0Ebn4ZL00U0P7 X-Received: by 2002:a17:906:824f:: with SMTP id f15mr13801685ejx.164.1627887392326; Sun, 01 Aug 2021 23:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627887392; cv=none; d=google.com; s=arc-20160816; b=pdJJJFNZv+xCqYX6muwI059j5tpmkhzfizquWZgSC6xWZ3oQngEx/FRYr+aEt9Y5UB rNmXDmgku/QMfrJ3Mp6zQk4UldoEHxNtqf0nr9JnSXatFJNfdZp+NEuBZI0GYbp+QB00 nTv2ZMdA+MzSivGIflOC3ZOMdBpOjuQ2k48uaKdpuW09zSxXtsli7bFRPe7R1NNnoOSp ZDpxZd8paTtUac7Z0gqu49QnHxxkLhzkN/wDCQFgN9pSGrKVjAy4Q+pwBaFk9D2bqdh6 4S9KsCC0jh9slVJmCkOcrgUjsfEc8RmSEOTXPX+1yu11p6iwza/vaYeUi+sAMnnSO2+D ZVGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=sVtgV3a6J0wlVMJPNsOoySfbDrKSoFKSWPk0eMInOqU=; b=d57XI7hRdBpvCpVm/GyCWVCTlsITPbchpo9ByIJPvkpAcvXJPH/QQYMEPP9CRxToe5 SK3H3jM6clZkm6o/5FoaS7tO77WosdEzhTWuJ7D81jnz6Hc98rRfBAESZivOaWByh4qL P4ZcDJd6J0f/tL1A2fOTW8HXna/cuiD8J+cYuGJv5786uxvVcKyx287J+s6sfeTHEOt+ QULAvXD+J/5mdTFLal0V8UsjFjz5chBmm22bMG1qlp40aiDmxs5WZU+1+ZY7kL+Immq2 OGnlXx3Ptq5KM6CBv5FBJBToA6oP39H9TnJiNgSLYFseQPvsVi64KFEQntaXV2uhGka8 I7lA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc26si9087104edb.413.2021.08.01.23.56.09; Sun, 01 Aug 2021 23:56:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232387AbhHBGwm (ORCPT + 99 others); Mon, 2 Aug 2021 02:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232298AbhHBGwl (ORCPT ); Mon, 2 Aug 2021 02:52:41 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03BD8C06175F for ; Sun, 1 Aug 2021 23:52:31 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mARoI-0008JH-60; Mon, 02 Aug 2021 08:52:26 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mARoH-0003Xl-0D; Mon, 02 Aug 2021 08:52:25 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mARoG-0006s8-VY; Mon, 02 Aug 2021 08:52:24 +0200 Date: Mon, 2 Aug 2021 08:52:24 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Finn Thain Cc: Greg Kroah-Hartman , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH v2 1/4] nubus: Simplify check in remove callback Message-ID: <20210802065224.n2tarfx6hzfamdyp@pengutronix.de> References: <20210730191035.1455248-1-u.kleine-koenig@pengutronix.de> <20210730191035.1455248-2-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5fojauxrhuxtr35u" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5fojauxrhuxtr35u Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Finn, On Sun, Aug 01, 2021 at 03:04:03PM +1000, Finn Thain wrote: > On Fri, 30 Jul 2021, Uwe Kleine-K=F6nig wrote: >=20 > > The driver core only calls a remove callback when the device was > > successfully bound (aka probed) before. So dev->driver is never NULL and > > the respective check can just be dropped. > >=20 > > Signed-off-by: Uwe Kleine-K=F6nig >=20 > Acked-by: Finn Thain >=20 > BTW, aside from nubus, zorro and superhyway you can find the same pattern > in many other busses. You may want to patch the following methods too. >=20 > acpi_device_remove > apr_device_remove > ccwgroup_remove > gio_device_remove > hid_device_remove=20 > ibmebus_bus_device_remove > macio_device_remove > memstick_device_remove > ntb_remove > pci_device_remove > pnp_device_remove > ps3_system_bus_remove > rio_device_remove > slim_device_remove > soundbus_device_remove > ssb_device_remove > tifm_device_remove > vdpa_dev_remove > vmbus_remove Did you find these by hand? Or using a coccinelle match? Anyhow, thanks for the list, I'll add it to my todo list but if you're motivated don't consider these cleanups as my property. (Please Cc: me though to prevent duplicated effort.) Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --5fojauxrhuxtr35u Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmEHliUACgkQwfwUeK3K 7AmrvAf9Gj/ycetiy4CpnD54L0WCnwWHBfM5j7ugv1yT8W21V/oUlqs7OjPF16i5 gEPGZ4tYdiOd89M++P7zgfVWSnD3XDpdRfP9hgJu30KrUyUz8hQi3Y3caGaSzx3Q aTP4I3v94qeRRR79t0ckMqw/wnCH+UsdODv0dUxfChw9udvY9XufHfov3WSiL0ep e3CJn3im7m+znXugiQchPaO8DZ5anT/rW0Y9gvCMqeh0vlO4lnM5ut5p7iYh275E rHpQb5eoehumjDLuP5o8wG/U9O0caRG64Usgaq+9oCrBvL7w1GumI2B9WeaTezdO NNn9NnWx9YLgUnrN0gEdujSGYHqFFQ== =iJUA -----END PGP SIGNATURE----- --5fojauxrhuxtr35u--