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

Fixes: 1bd8b6b2c5d3 ("rust: pci: add basic PCI device / driver abstractions")
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 b80e132169601126bef07ae518689b0b9b62257b..7fcc5f6022c19f2156b2ec684ce5e269480230db 100644 (file)
@@ -270,8 +270,8 @@ pub trait Driver: Send {
 
     /// PCI driver probe.
     ///
-    /// Called when a new platform device is added or discovered.
-    /// Implementers should attempt to initialize the device here.
+    /// Called when a new pci device is added or discovered. Implementers should
+    /// attempt to initialize the device here.
     fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> Result<Pin<KBox<Self>>>;
 
     /// PCI driver unbind.