Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp256642pxb; Wed, 6 Oct 2021 04:29:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqc80WGNBwtPOsEVrFQ9h8BYfWgki6ty8ymE85u+kbzVsgQua5abzPbMntoLzWZhazLGGp X-Received: by 2002:a17:906:16d0:: with SMTP id t16mr27101034ejd.199.1633519743065; Wed, 06 Oct 2021 04:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633519743; cv=none; d=google.com; s=arc-20160816; b=WaSnDEEbOoWTphKTrvYrcBWbmrnAfD8Wz8FBS/Zu4Fyxk1357km29RDv1vZHFmiy3J oyRq6kQ5KNyFPKyr4R39xhMKZIyZGtIR142poHPGmBKcaFESmuyXtGiB1yt9cddKOPCD A67GUkkavubVLRZGaL8rUWNyRhTiVsiZgMN43tNgeyBNH2XkKmdPJZHOMOpq4ueqyHPY 8/Ft+NVofuvZVOHct3K2WdEWE3A/8ED1Kje9E3jWJHzLHiAlYP01MV+81/zWMP++EnxZ D3TtI3qi9bSbsfR0oqNBw/Vaf9+tH4fAw5E5C79kNwflxYe8rYuzOmOkOzzgg1n6ODrE sY9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=eesj9GoFvjuzhti7ER29AlYh3B+v7s26MyL7aTVWCBA=; b=mqo/A8UnPQ1vDJ92Dgx6h8Fh0Gjq7ttL+i3DOlrE4YsRX15Tse2kRvThH6RElQ87R0 dsTm4MWRyUgy3tLMWnnqq+2HDkEo/REdbjX6A89QGVnnG0j34V3gC5i7IX4u+0z9txGm cyVr+Rl0eBtG0JAXRjha9pE4Hmz+gczCfhGm90aDVG4f7TVTGoq4ZkhfHdcszdhFEc2c dQAlZaIQGGn9mQ3fRYFwdSvr00DFehoYKAOwD63OVFMNoxtumJCE+lOMwZFr2mNruIyX ezyb32sy+EJLhmWkEsM//SJsTzXAMD45zaTXKfAIajOhcwn8aAxjH6dqvlsT0pjXlT4X bTIQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si2451768edc.134.2021.10.06.04.28.39; Wed, 06 Oct 2021 04:29:03 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238366AbhJFL2m (ORCPT + 99 others); Wed, 6 Oct 2021 07:28:42 -0400 Received: from mga12.intel.com ([192.55.52.136]:41644 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238143AbhJFL2g (ORCPT ); Wed, 6 Oct 2021 07:28:36 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10128"; a="206091109" X-IronPort-AV: E=Sophos;i="5.85,350,1624345200"; d="scan'208";a="206091109" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2021 04:26:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,350,1624345200"; d="scan'208";a="623860178" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 06 Oct 2021 04:26:41 -0700 From: Heikki Krogerus To: Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Bjorn Helgaas , Andy Shevchenko , Zhangfei Gao , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v3 2/3] driver core: Don't call device_remove_properties() from device_del() Date: Wed, 6 Oct 2021 14:26:42 +0300 Message-Id: <20211006112643.77684-3-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211006112643.77684-1-heikki.krogerus@linux.intel.com> References: <20211006112643.77684-1-heikki.krogerus@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All the drivers that relied on device_del() to call device_remove_properties() have now been converted to either use device_create_managed_software_node() instead of device_add_properties(), or to register the software node completely separately from the device. This will make it finally possible to share and reuse the software nodes that hold the additional device properties. Signed-off-by: Heikki Krogerus --- drivers/base/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index c4a2c97a21a2b..ea39ffad11179 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -3584,7 +3584,6 @@ void device_del(struct device *dev) device_pm_remove(dev); driver_deferred_probe_del(dev); device_platform_notify_remove(dev); - device_remove_properties(dev); device_links_purge(dev); if (dev->bus) -- 2.33.0