Skip to content

Commit 93ed2e0

Browse files
committed
fixup! rust: device: Add RawDevice (based on "Add an abstraction for devices")
1 parent 2a58650 commit 93ed2e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl Device {
236236
pub fn from_dev(dev: &dyn RawDevice) -> ARef<Self> {
237237
// SAFETY: The requirements are satisfied by the existence of `RawDevice` and its safety
238238
// requirements.
239-
unsafe { Self::from_raw(dev.raw_device()) }
239+
unsafe { Self::get_device(dev.raw_device()) }
240240
}
241241
}
242242

0 commit comments

Comments
 (0)