File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -870,9 +870,8 @@ impl platform::Driver for AopDriver {
870870 const OF_ID_TABLE : Option < of:: IdTable < ( ) > > = Some ( & OF_TABLE ) ;
871871
872872 fn probe ( pdev : & mut platform:: Device , _info : Option < & ( ) > ) -> Result < Pin < KBox < AopDriver > > > {
873- let dev = pdev. get_device ( ) ;
874873 let data = AopData :: new ( pdev) ?;
875- let of = dev . of_node ( ) . ok_or ( EIO ) ?;
874+ let of = pdev . as_ref ( ) . of_node ( ) . ok_or ( EIO ) ?;
876875 let alig = of. get_property ( c_str ! ( "apple,aop-alignment" ) ) ?;
877876 let aopt = of. get_property ( c_str ! ( "apple,aop-target" ) ) ?;
878877 data. patch_bootargs ( & [
@@ -881,7 +880,7 @@ impl platform::Driver for AopDriver {
881880 ( from_fourcc ( b"alig" ) , alig) ,
882881 ( from_fourcc ( b"AOPt" ) , aopt) ,
883882 ] ) ?;
884- let rtkit = rtkit:: RtKit :: < AopData > :: new ( & dev , None , 0 , data. clone ( ) ) ?;
883+ let rtkit = rtkit:: RtKit :: < AopData > :: new ( pdev . as_ref ( ) , None , 0 , data. clone ( ) ) ?;
885884 * data. rtkit . lock ( ) = Some ( rtkit) ;
886885 let _ = data. start_cpu ( ) ;
887886 data. start ( ) ?;
You can’t perform that action at this time.
0 commit comments