]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add intel_bios_cleanup() function
authorHans de Goede <j.w.r.degoede@gmail.com>
Wed, 14 Feb 2018 08:21:49 +0000 (09:21 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Feb 2018 10:38:10 +0000 (11:38 +0100)
commit4ad417df70c74450ab1e6b344bdbe2d65cc26c29
tree6f8b72083671b8697edf4f928d2a7716d66d1d93
parent6caa1dcf783661ee78ac9e3a482c9d79982fa040
drm/i915: Add intel_bios_cleanup() function

Add an intel_bios_cleanup() function to act as counterpart of
intel_bios_init() and move the cleanup of vbt related resources there,
putting it in the same file as the allocation.

Changed in v2:
-While touching the code anyways, remove the unnecessary:
 if (dev_priv->vbt.child_dev) done before kfree(dev_priv->vbt.child_dev)

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180214082151.25015-1-hdegoede@redhat.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_bios.c