> On 20 Jan 2026, at 15:11, Gary Guo <[email protected]> wrote:
>
> From: Gary Guo <[email protected]>
>
> This is now handled by the macro itself.
>
> Signed-off-by: Gary Guo <[email protected]>
> ---
> drivers/gpu/drm/tyr/driver.rs | 2 +-
> drivers/gpu/drm/tyr/gpu.rs | 6 +++---
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/tyr/driver.rs b/drivers/gpu/drm/tyr/driver.rs
> index 2a45d0288825..fe991d8cbb4a 100644
> --- a/drivers/gpu/drm/tyr/driver.rs
> +++ b/drivers/gpu/drm/tyr/driver.rs
> @@ -140,7 +140,7 @@ fn probe(
>
> // We need this to be dev_info!() because dev_dbg!() does not work at
> // all in Rust for now, and we need to see whether probe succeeded.
> - dev_info!(pdev.as_ref(), "Tyr initialized correctly.\n");
> + dev_info!(pdev, "Tyr initialized correctly.\n");
> Ok(driver)
> }
> }
> diff --git a/drivers/gpu/drm/tyr/gpu.rs b/drivers/gpu/drm/tyr/gpu.rs
> index bfbf2a1d80e6..04a0a5d5ef3a 100644
> --- a/drivers/gpu/drm/tyr/gpu.rs
> +++ b/drivers/gpu/drm/tyr/gpu.rs
> @@ -98,7 +98,7 @@ pub(crate) fn log(&self, pdev: &platform::Device) {
> };
>
> dev_info!(
> - pdev.as_ref(),
> + pdev,
> "mali-{} id 0x{:x} major 0x{:x} minor 0x{:x} status 0x{:x}",
> model_name,
> self.gpu_id >> 16,
> @@ -108,7 +108,7 @@ pub(crate) fn log(&self, pdev: &platform::Device) {
> );
>
> dev_info!(
> - pdev.as_ref(),
> + pdev,
> "Features: L2:{:#x} Tiler:{:#x} Mem:{:#x} MMU:{:#x} AS:{:#x}",
> self.l2_features,
> self.tiler_features,
> @@ -118,7 +118,7 @@ pub(crate) fn log(&self, pdev: &platform::Device) {
> );
>
> dev_info!(
> - pdev.as_ref(),
> + pdev,
> "shader_present=0x{:016x} l2_present=0x{:016x}
> tiler_present=0x{:016x}",
> self.shader_present,
> self.l2_present,
> --
> 2.51.2
>
>
Reviewed-by: Daniel Almeida <[email protected]>