rust: pci: fix incorrect platform reference in PCI driver probe doc comment

Substitute 'platform' with 'pci'.

Fixes: 1bd8b6b2c5 ("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>
This commit is contained in:
Rahul Rameshbabu
2025-09-14 03:18:34 +00:00
committed by Danilo Krummrich
parent a404d09955
commit 855318e7c0

View File

@@ -270,8 +270,8 @@ pub trait Driver: Send {
/// PCI driver probe. /// PCI driver probe.
/// ///
/// Called when a new platform device is added or discovered. /// Called when a new pci device is added or discovered. Implementers should
/// Implementers should attempt to initialize the device here. /// attempt to initialize the device here.
fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> Result<Pin<KBox<Self>>>; fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> Result<Pin<KBox<Self>>>;
/// PCI driver unbind. /// PCI driver unbind.