Skip to content

Commit 268a901

Browse files
committed
drm/asahi: gpu: Access AsahiData via pdev.drvdata
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent bc7a1d3 commit 268a901

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/asahi/gpu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use kernel::{
3232

3333
use crate::alloc::Allocator;
3434
use crate::debug::*;
35-
use crate::driver::{AsahiDevRef, AsahiDevice};
35+
use crate::driver::{AsahiDevRef, AsahiDevice, AsahiDriver};
3636
use crate::fw::channels::{ChannelErrorType, PipeType};
3737
use crate::fw::types::{U32, U64};
3838
use crate::{
@@ -955,7 +955,7 @@ impl GpuManager::ver {
955955

956956
/// Fetch the GPU MMU fault information from the hardware registers.
957957
fn get_fault_info(&self) -> Option<regs::FaultInfo> {
958-
let data = self.dev.data();
958+
let data = unsafe { &<KBox<AsahiDriver>>::borrow(self.dev.as_ref().get_drvdata()).data };
959959

960960
let res = &data.resources;
961961

0 commit comments

Comments
 (0)