summaryrefslogtreecommitdiffstats
path: root/drivers/base/base.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-14 08:59:13 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-14 09:01:21 +0100
commitd3583f06782cae72374464f9c29b2056fa0bd012 (patch)
treefcaf5948b9c3dbd37b7db60b11c0cdab3e77777b /drivers/base/base.h
parentdriver core: cpu: don't hand-override the uevent bus_type callback. (diff)
downloadlinux-d3583f06782cae72374464f9c29b2056fa0bd012.tar.xz
linux-d3583f06782cae72374464f9c29b2056fa0bd012.zip
Revert "devtmpfs: remove return value of devtmpfs_delete_node()"
This reverts commit 9d3fe6aa6b9517408064c7c3134187e8ec77dbf7 as it is reported to cause boot regressions. Link: https://lore.kernel.org/r/Y+rSXg14z1Myd8Px@dev-arch.thelio-3990X Reported-by: Nathan Chancellor <nathan@kernel.org> Cc: Longlong Xia <xialonglong1@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r--drivers/base/base.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h
index 80cdf3fcb458..726a12a244c0 100644
--- a/drivers/base/base.h
+++ b/drivers/base/base.h
@@ -215,10 +215,10 @@ void device_pm_move_to_tail(struct device *dev);
#ifdef CONFIG_DEVTMPFS
int devtmpfs_create_node(struct device *dev);
-void devtmpfs_delete_node(struct device *dev);
+int devtmpfs_delete_node(struct device *dev);
#else
static inline int devtmpfs_create_node(struct device *dev) { return 0; }
-static inline void devtmpfs_delete_node(struct device *dev) { }
+static inline int devtmpfs_delete_node(struct device *dev) { return 0; }
#endif
void software_node_notify(struct device *dev);