]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
driver core: make software nodes available earlier
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Thu, 2 Apr 2026 14:15:04 +0000 (16:15 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Fri, 3 Apr 2026 22:33:49 +0000 (00:33 +0200)
commit1cf996ac307e4d8d86f07d72b55528df88b56ce6
tree983fbad0b40a49ec52b9dc09608cb3ddd7ca4584
parentb3eb6a25b969910852bacbed9408afba4fc09c91
driver core: make software nodes available earlier

Software nodes are currently initialized in a function registered as
a postcore_initcall(). However, some devices may want to register
software nodes earlier than that (or also in a postcore_initcall() where
they're at the mercy of the link order). Move the initialization to
driver_init() making swnode available much earlier as well as making
their initialization time deterministic.

Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260402-nokia770-gpio-swnodes-v5-3-d730db3dd299@oss.qualcomm.com
[ Fix typo in the commit message: "s/merci/mercy/". - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/base/base.h
drivers/base/init.c
drivers/base/swnode.c