Skip to content

Commit 19d1995

Browse files
committed
fixup! ASoC: apple: Add aop_audio driver.
Adapt to devices changes. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 43f6c3c commit 19d1995

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/apple/aop_audio.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,8 @@ impl platform::Driver for SndSocAopDriver {
652652
pdev: &mut platform::Device,
653653
_info: Option<&()>,
654654
) -> Result<Pin<KBox<SndSocAopDriver>>> {
655-
let dev = pdev.get_device();
656-
let parent = dev.parent().unwrap();
655+
let dev = ARef::<device::Device>::from(pdev.as_ref());
656+
let parent = pdev.as_ref().parent().unwrap();
657657
// SAFETY: our parent is AOP, and AopDriver is repr(transparent) for Arc<dyn Aop>
658658
let adata_ptr = unsafe { Pin::<KBox<Arc<dyn AOP>>>::borrow(parent.get_drvdata()) };
659659
let adata = (&*adata_ptr).clone();

0 commit comments

Comments
 (0)