drm/i915: Use devm_drm_dev_alloc
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 15 Apr 2020 07:40:13 +0000 (09:40 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 28 Apr 2020 18:51:33 +0000 (20:51 +0200)
commit274ed9e9eabd23984ac03a8cebf5ce206c0b60bf
tree28ee5691ebf2708a6abb6c173c57449cd6541981
parente304f8a0513b830be37b3f5059c3d8fcaacda4b7
drm/i915: Use devm_drm_dev_alloc

Luckily we're already well set up in the main driver, with
drm_dev_put() being the last thing in both the unload error case and
the pci remove function.

Acked-by: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200415074034.175360-39-daniel.vetter@ffwll.ch
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_pci.c