diff options
| author | Alok Tiwari <alok.a.tiwari@oracle.com> | 2026-01-10 03:51:56 -0800 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-01-13 12:35:06 +0100 |
| commit | 585e8a26abfd0c453f01ef78bd637cb7600e9b04 (patch) | |
| tree | fa45d0df16446f1525c3f3fddd340b96633414d2 /rust | |
| parent | 601cd264a31d198d5710846c9b53dfa92f1c4268 (diff) | |
rust: platform: fix remove_callback invariant comment
Correct copy-paste errors where remove_callback safety invariants
incorrectly referenced probe_callback().
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260110115159.2313116-1-alok.a.tiwari@oracle.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/kernel/platform.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/platform.rs b/rust/kernel/platform.rs index 8836ac46b066..bdf89c8293fc 100644 --- a/rust/kernel/platform.rs +++ b/rust/kernel/platform.rs @@ -103,7 +103,7 @@ impl<T: Driver + 'static> Adapter<T> { // SAFETY: The platform bus only ever calls the remove callback with a valid pointer to a // `struct platform_device`. // - // INVARIANT: `pdev` is valid for the duration of `probe_callback()`. + // INVARIANT: `pdev` is valid for the duration of `remove_callback()`. let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; // SAFETY: `remove_callback` is only ever called after a successful call to |
