]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc235ea9753ed2687cec485539013be2be89ef6b9
tree28ee5691ebf2708a6abb6c173c57449cd6541981
parentf957ea2e6070c284955975f7efb0ce21199f4560
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