@@ -10,7 +10,7 @@ use kernel::{
10
10
irq:: { self , ExtraResult , IrqData , LockedIrqData } ,
11
11
power,
12
12
prelude:: * ,
13
- sync:: { Ref , RefBorrow , SpinLock } ,
13
+ sync:: { RawSpinLock , Ref , RefBorrow } ,
14
14
} ;
15
15
16
16
const GPIODIR : usize = 0x400 ;
@@ -41,7 +41,7 @@ struct PL061DataInner {
41
41
42
42
struct PL061Data {
43
43
dev : device:: Device ,
44
- inner : SpinLock < PL061DataInner > ,
44
+ inner : RawSpinLock < PL061DataInner > ,
45
45
}
46
46
47
47
struct PL061Resources {
@@ -283,15 +283,15 @@ impl amba::Driver for PL061Device {
283
283
} ,
284
284
PL061Data {
285
285
dev: device:: Device :: from_dev( dev) ,
286
- // SAFETY: We call `spinlock_init ` below.
287
- inner: unsafe { SpinLock :: new( PL061DataInner :: default ( ) ) } ,
286
+ // SAFETY: We call `rawspinlock_init ` below.
287
+ inner: unsafe { RawSpinLock :: new( PL061DataInner :: default ( ) ) } ,
288
288
} ,
289
289
"PL061::Registrations"
290
290
) ?;
291
291
292
292
// SAFETY: General part of the data is pinned when `data` is.
293
293
let gen_inner = unsafe { data. as_mut ( ) . map_unchecked_mut ( |d| & mut ( * * d) . inner ) } ;
294
- kernel:: spinlock_init !( gen_inner, "PL061Data::inner" ) ;
294
+ kernel:: rawspinlock_init !( gen_inner, "PL061Data::inner" ) ;
295
295
296
296
let data = Ref :: < DeviceData > :: from ( data) ;
297
297
0 commit comments