Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2974832lqp; Mon, 25 Mar 2024 15:14:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyphHHCIn4UMNNIBSyyNhUnFs4wEDRgR3xlsxyMj1/lTJvcPTvhU4t1JanJvpn44R2EbCsQDcua9G9otY7JYgkX19VrCrzQo2iW6NGjQ== X-Google-Smtp-Source: AGHT+IEuw2o14S/TWeEH4Aku8wYvsPSlvV1JdooNZVrWsgjtYAHdXk0z5/ajE/0dxZhh+PFwPRLx X-Received: by 2002:ac8:7f07:0:b0:431:6194:498b with SMTP id f7-20020ac87f07000000b004316194498bmr4449072qtk.0.1711404860745; Mon, 25 Mar 2024 15:14:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711404860; cv=pass; d=google.com; s=arc-20160816; b=swMGQoVunHWDxAh7hCwr593Dp+f4fo8dOk+/JQstUj698fSiZ6tuX05m7Q2satpKdW SPQQ8hkSLkEZT9akWU4xlUGz2EAJS49uEbpSpE5sp1s/Ap74/Z8gbTdy5lzK96bgw/hu CC1ez4u+3qmDoDRIt8tCxh7BcWZcccTUYnQByHZjwW0QedfbA2aMGv9btjb7drwHw6O7 ORHUExOmPLFuge326NQWhufguOBSB8rMUqbkIGNXXiHn3tSybDuopfXoblVITYCy5bBo C6adAuv/+OJoxHyraq8T48DPGXHI22wUV7U1nuf4PcU2KAp4iFOG7jNChGSQa8mVxMUv /cTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=QIS4/hbFCnW2rQoNfePrmHDoGjBD6UgoyJkfaHzDR1w=; fh=HUzGqjC8NvjurUXQzvYXg/hRSxVtUSeYQ9x0XVCZ7f4=; b=sl8ozlMEvhURJZbKzgSEGTzaraiNnot/kkwfLKniTuSvIIo3QWUxuuM26T+pw81NC0 Z+a7X4qdyrh9xmZY0ssiHbX5wDLySxdpnU5iu2L8yrwfm6O9yphxuPIR+j16ySK27O6v loPGxq/sXJNgWaqqsQNfP9G33DOXMx1x0lx2oKXGC8JQ+7iP1r/j728EI1AiGC0WkSNx W18Zk7tea0xh6UYzJxtQBFV+9TJVEls/Dc3g+XJdsLmmaTlCmZ3nOY4k+RfgW1+WjLQE DeHVMeSkpCsuvj3yDhyUxWHdmBr2vAb9x2L9vwK94zx9fTGaCjR0h5MK79D1qiChpbqc EWhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RPfBkMcQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118088-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bl6-20020a05622a244600b004311dc250cdsi6438263qtb.735.2024.03.25.15.14.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 15:14:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RPfBkMcQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118088-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7C0921C3F7DB for ; Mon, 25 Mar 2024 22:14:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5307473526; Mon, 25 Mar 2024 22:14:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RPfBkMcQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CCBA5D737 for ; Mon, 25 Mar 2024 22:14:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711404854; cv=none; b=CiqFJRr3CjjI3i5bSVQ6qxVaBQZt8svMMfr1KJBR9WpLTv3mJf92Vf6ZWGnUyVl46Mh3tuoQpdw7floPExy3+jkPZWOnn0h3t/IgKURM7GJmXP3Yhw7/0WKkg7z8p8XmtlbaVvOlCKXwqAa1unbD83Rcso8RvZrlGTbun7mg1j4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711404854; c=relaxed/simple; bh=Dq91DUOv3LbPewimm3YVR7sgRj5Hcl1z/IZXjKreQxo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jrH7ZVWk3/ymhAUaobfuydtGu/nmDVURCMUx5NYFpYig0TW8AL9VtNO3glJEhi5FEXVy0wBmNp1xMZSAWyDBc19TikQ6KB3a1rlOAohtHm3ewke2kC9tSQD4pJ1GBZjVMy+hM+giJiBCUOhqK/nrtvX3uopCsYravYellbHm51g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RPfBkMcQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8167C433F1; Mon, 25 Mar 2024 22:14:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711404854; bh=Dq91DUOv3LbPewimm3YVR7sgRj5Hcl1z/IZXjKreQxo=; h=From:To:Cc:Subject:Date:From; b=RPfBkMcQNrTErKXKdRqaMRotVmmPyyTNTDikF7xG/VYdELsxR+e2BHM9mvwi3EexN v/iVfM7nPfvnbQQXg0Lsa/ME1RCKAreNw6Eaq1YyLM9gLXpvDp33RpHoXSU3rE0AQs BKYjuWfinkYGyxQ/IBg/ENtPf0gLAGm/D21w6411NBEisNXpmAYMSg7RlW7I9qJi64 smzcZL8rXsNYs4VVV78G7Q3aWtFtYNmsGKOzy2AELPlPG+2nyCU3zhBWNp6NTXSqAG Dv5ngqQHZ9BzvTz1fD1z4mjtrJi0stW5OWm3MsKevt8wr/sdNix6hf6g0h+DSxID+m DWaJ2zFYp4N0Q== From: Bjorn Helgaas To: Greg Kroah-Hartman Cc: "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, Bjorn Helgaas , Heikki Krogerus , Andy Shevchenko , Linus Walleij Subject: [PATCH] driver core: Remove unused platform_notify, platform_notify_remove Date: Mon, 25 Mar 2024 17:14:09 -0500 Message-Id: <20240325221409.1457036-1-helgaas@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Bjorn Helgaas The "platform_notify" and "platform_notify_remove" hooks have been unused since 00ba9357d189 ("ARM: ixp4xx: Drop custom DMA coherency and bouncing"). Remove "platform_notify" and "platform_notify_remove". No functional change intended. Signed-off-by: Bjorn Helgaas Cc: Heikki Krogerus Cc: Andy Shevchenko Cc: Linus Walleij --- drivers/base/core.c | 8 -------- include/linux/device.h | 11 ----------- 2 files changed, 19 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index b93f3c5716ae..78dfa74ee18b 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -2331,8 +2331,6 @@ static void fw_devlink_link_device(struct device *dev) /* Device links support end. */ -int (*platform_notify)(struct device *dev) = NULL; -int (*platform_notify_remove)(struct device *dev) = NULL; static struct kobject *dev_kobj; /* /sys/dev/char */ @@ -2380,16 +2378,10 @@ static void device_platform_notify(struct device *dev) acpi_device_notify(dev); software_node_notify(dev); - - if (platform_notify) - platform_notify(dev); } static void device_platform_notify_remove(struct device *dev) { - if (platform_notify_remove) - platform_notify_remove(dev); - software_node_notify_remove(dev); acpi_device_notify_remove(dev); diff --git a/include/linux/device.h b/include/linux/device.h index 97c4b046c09d..c515ba5756e4 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -1206,17 +1206,6 @@ int __must_check devm_device_add_groups(struct device *dev, int __must_check devm_device_add_group(struct device *dev, const struct attribute_group *grp); -/* - * Platform "fixup" functions - allow the platform to have their say - * about devices and actions that the general device layer doesn't - * know about. - */ -/* Notify platform of device discovery */ -extern int (*platform_notify)(struct device *dev); - -extern int (*platform_notify_remove)(struct device *dev); - - /* * get_device - atomically increment the reference count for the device. * -- 2.34.1