We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a58650 commit 93ed2e0Copy full SHA for 93ed2e0
1 file changed
rust/kernel/device.rs
@@ -236,7 +236,7 @@ impl Device {
236
pub fn from_dev(dev: &dyn RawDevice) -> ARef<Self> {
237
// SAFETY: The requirements are satisfied by the existence of `RawDevice` and its safety
238
// requirements.
239
- unsafe { Self::from_raw(dev.raw_device()) }
+ unsafe { Self::get_device(dev.raw_device()) }
240
}
241
242
0 commit comments