Adopt the driver core lifetime infrastructure for tyr.

Separate the driver type from the driver data and use lifetime-bound
IoMem directly in probe instead of wrapping it in Devres and Arc,
simplifying register access.

This patch series is based on [1] and drm-rust-next.

[1] https://lore.kernel.org/driver-core/[email protected]/

Danilo Krummrich (2):
  gpu: drm: tyr: separate driver type from driver data
  gpu: drm: tyr: use IoMem directly instead of Devres

 drivers/gpu/drm/tyr/driver.rs | 29 ++++++++++++-----------------
 drivers/gpu/drm/tyr/gpu.rs    | 13 +++----------
 drivers/gpu/drm/tyr/tyr.rs    |  4 ++--
 3 files changed, 17 insertions(+), 29 deletions(-)

-- 
2.54.0

Reply via email to