rust: devres: require a bound device
authorDanilo Krummrich <dakr@kernel.org>
Sun, 13 Apr 2025 17:37:03 +0000 (19:37 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Thu, 17 Apr 2025 13:21:52 +0000 (15:21 +0200)
commitf720efda2db5e609b32100c25d9cf383f082d945
tree1fe1c70f0bccae94c3634f8e2bff04da804091f7
parentf2a399d7b67c4a6fc0f8e59d1a9eb484efc71b5c
rust: devres: require a bound device

Require the Bound device context to be able to a new Devres container.
This ensures that we can't register devres callbacks for unbound
devices.

Link: https://lore.kernel.org/r/20250413173758.12068-9-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/devres.rs