We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 901a408 commit f96a3c5Copy full SHA for f96a3c5
1 file changed
rust/kernel/platform.rs
@@ -219,7 +219,7 @@ impl Device {
219
/// Sets the DMA masks (normal and coherent) for a platform device.
220
pub fn set_dma_masks(&mut self, mask: u64) -> Result {
221
// SAFETY: `self.ptr` is valid by the type invariant.
222
- to_result(unsafe { bindings::dma_set_mask_and_coherent(&mut (*self.ptr).dev, mask) })
+ to_result(unsafe { bindings::dma_set_mask_and_coherent(&mut (*self.as_raw()).dev, mask) })
223
}
224
225
/// Gets a system resources of a platform device.
0 commit comments