Skip to content

Commit 683e3af

Browse files
committed
fixup! *RFL import: The rest of kernel::device (minus clk stuff)
1 parent 212f64b commit 683e3af

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rust/kernel/device.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@ pub struct Data<T, U, V> {
254254
#[macro_export]
255255
macro_rules! new_device_data {
256256
($reg:expr, $res:expr, $gen:expr, $name:literal) => {{
257-
static CLASS1: $crate::sync::LockClassKey = $crate::sync::LockClassKey::new();
257+
static CLASS1: $crate::sync::LockClassKey = $crate::static_lock_class!();
258258
let regs = $reg;
259259
let res = $res;
260260
let gen = $gen;
261261
let name = $crate::c_str!($name);
262-
$crate::device::Data::try_new(regs, res, gen, name, &CLASS1)
262+
$crate::device::Data::try_new(regs, res, gen, name, CLASS1)
263263
}};
264264
}
265265

@@ -273,7 +273,7 @@ impl<T, U, V> Data<T, U, V> {
273273
resources: U,
274274
general: V,
275275
name: &'static CStr,
276-
key1: &'static LockClassKey,
276+
key1: LockClassKey,
277277
) -> Result<Pin<UniqueArc<Self>>> {
278278
let ret = UniqueArc::pin_init(pin_init!(Self {
279279
registrations <- Mutex::new(registrations, name, key1),

0 commit comments

Comments
 (0)