Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions kernel/rros/clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ pub static mut RROS_CLOCK_FACTORY: SpinLock<factory::RrosFactory> = unsafe {
dispose: Some(clock_factory_dispose),
attrs: None, //sysfs::attribute_group::new(),
flags: factory::RrosFactoryType::Invalid,
inside: Some(factory::RrosFactoryInside {
inside: factory::RrosFactoryInside {
type_: DeviceType::new(),
class: None,
cdev: None,
Expand All @@ -559,7 +559,7 @@ pub static mut RROS_CLOCK_FACTORY: SpinLock<factory::RrosFactory> = unsafe {
name_hash: None,
hash_lock: None,
register: None,
}),
},
})
};

Expand Down Expand Up @@ -1028,7 +1028,7 @@ impl FileOperations for ClockOps {
}
}

pub fn clock_factory_dispose(ele: factory::RrosElement) {}
pub fn clock_factory_dispose(ele: &mut factory::RrosElement) {}

fn timer_needs_enqueuing(timer: *mut RrosTimer) -> bool {
unsafe {
Expand Down
4 changes: 2 additions & 2 deletions kernel/rros/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub static mut RROS_CONTROL_FACTORY: SpinLock<RrosFactory> = unsafe {
dispose: None,
attrs: None,
flags: crate::factory::RrosFactoryType::SINGLE,
inside: Some(RrosFactoryInside {
inside: RrosFactoryInside {
type_: DeviceType::new(),
class: None,
cdev: None,
Expand All @@ -41,7 +41,7 @@ pub static mut RROS_CONTROL_FACTORY: SpinLock<RrosFactory> = unsafe {
name_hash: None,
hash_lock: None,
register: None,
}),
},
})
};

Expand Down
Loading