Skip to content
Commit 3dff3393 authored by Nick Hollinghurst's avatar Nick Hollinghurst Committed by Dom Cobley
Browse files

drm: rp1: VEC and DPI drivers: Fix bug #5901



Rework probe() to use devm_drm_dev_alloc(), embedding the DRM
device in the DPI or VEC device as now seems to be recommended.

Change order of resource allocation and driver initialization.
This prevents it trying to write to an unmapped register during
clean-up, which previously could crash.

Signed-off-by: default avatarNick Hollinghurst <nick.hollinghurst@raspberrypi.com>
parent 5dff4a08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment