Skip to content

Commit f96a3c5

Browse files
committed
fixup! rust: kernel: platform: Add Device.set_dma_masks()
1 parent 901a408 commit f96a3c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/platform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ impl Device {
219219
/// Sets the DMA masks (normal and coherent) for a platform device.
220220
pub fn set_dma_masks(&mut self, mask: u64) -> Result {
221221
// SAFETY: `self.ptr` is valid by the type invariant.
222-
to_result(unsafe { bindings::dma_set_mask_and_coherent(&mut (*self.ptr).dev, mask) })
222+
to_result(unsafe { bindings::dma_set_mask_and_coherent(&mut (*self.as_raw()).dev, mask) })
223223
}
224224

225225
/// Gets a system resources of a platform device.

0 commit comments

Comments
 (0)