diff --git a/drivers/char/hw_random/bcm2835_rng_rust.rs b/drivers/char/hw_random/bcm2835_rng_rust.rs index 3e8da4cd04e267..2d7b81ed67d24f 100644 --- a/drivers/char/hw_random/bcm2835_rng_rust.rs +++ b/drivers/char/hw_random/bcm2835_rng_rust.rs @@ -7,7 +7,7 @@ use kernel::{ c_str, file::File, file_operations::FileOperations, io_buffer::IoBufferWriter, miscdev, - of::ConstOfMatchTable, platdev, platdev::PlatformDriver, prelude::*, + of::ConstOfMatchTable, platform, platform::PlatformDriver, prelude::*, }; module! { @@ -54,7 +54,7 @@ impl PlatformDriver for RngDriver { } struct RngModule { - _pdev: Pin>, + _pdev: Pin>, } impl KernelModule for RngModule { @@ -63,7 +63,7 @@ impl KernelModule for RngModule { ConstOfMatchTable::new_const([c_str!("brcm,bcm2835-rng")]); let pdev = - platdev::Registration::new_pinned::(name, Some(&OF_MATCH_TBL), module)?; + platform::Registration::new_pinned::(name, Some(&OF_MATCH_TBL), module)?; Ok(RngModule { _pdev: pdev }) } diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index 5917b7d789c44f..301ce5647274ab 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -84,7 +84,7 @@ pub mod io_buffer; pub mod io_mem; pub mod iov_iter; pub mod of; -pub mod platdev; +pub mod platform; mod types; pub mod user_ptr; diff --git a/rust/kernel/platdev.rs b/rust/kernel/platform.rs similarity index 100% rename from rust/kernel/platdev.rs rename to rust/kernel/platform.rs