Skip to content

Commit e52df48

Browse files
committed
rust: kernel: net: phy: Fix Module::init() signature
fixup! rust: Add `name` argument to Module::init() Signed-off-by: Janne Grunau <[email protected]>
1 parent 3a98730 commit e52df48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/net/phy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ macro_rules! module_phy_driver {
887887
[$($crate::net::phy::create_phy_driver::<$driver>()),+];
888888

889889
impl $crate::Module for Module {
890-
fn init(module: &'static ThisModule) -> Result<Self> {
890+
fn init(_: &'static kernel::prelude::CStr, module: &'static ThisModule) -> Result<Self> {
891891
// SAFETY: The anonymous constant guarantees that nobody else can access
892892
// the `DRIVERS` static. The array is used only in the C side.
893893
let drivers = unsafe { &mut DRIVERS };

0 commit comments

Comments
 (0)