Skip to content

Commit

Permalink
Merge pull request Rust-for-Linux#962 from wedsonaf/pl061-clippy
Browse files Browse the repository at this point in the history
gpio: pl061: fix new clippy error
  • Loading branch information
ojeda authored Feb 11, 2023
2 parents 1a9a5d7 + 1b8f587 commit 8d68625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_pl061_rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ impl amba::Driver for PL061Device {
)?;

// SAFETY: General part of the data is pinned when `data` is.
let gen_inner = unsafe { data.as_mut().map_unchecked_mut(|d| &mut (**d).inner) };
let gen_inner = unsafe { data.as_mut().map_unchecked_mut(|d| &mut d.inner) };
kernel::rawspinlock_init!(gen_inner, "PL061Data::inner");

let data = Arc::<DeviceData>::from(data);
Expand Down

0 comments on commit 8d68625

Please sign in to comment.