]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rust: pci: fix incorrect platform reference in PCI driver unbind doc comment
authorRahul Rameshbabu <sergeantsagara@protonmail.com>
Sun, 14 Sep 2025 03:19:19 +0000 (03:19 +0000)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 17 Sep 2025 10:51:07 +0000 (12:51 +0200)
Substitute 'platform' with 'pci'.

Fixes: 18ebb25dfa18 ("rust: pci: implement Driver::unbind()")
Cc: stable@kernel.org
Signed-off-by: Rahul Rameshbabu <sergeantsagara@protonmail.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/pci.rs

index 78271bf88ceafc979420b5d03887b6def73c2b95..b80e132169601126bef07ae518689b0b9b62257b 100644 (file)
@@ -274,7 +274,7 @@ pub trait Driver: Send {
     /// Implementers should attempt to initialize the device here.
     fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> Result<Pin<KBox<Self>>>;
 
-    /// Platform driver unbind.
+    /// PCI driver unbind.
     ///
     /// Called when a [`Device`] is unbound from its bound [`Driver`]. Implementing this callback
     /// is optional.