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)
commit785f076b3ba781804f2b22b347b4431e3efb0ab3
tree6f8b72083671b8697edf4f928d2a7716d66d1d93
parent5270d9c367a1a5673c5afb7ef77c6ec25ff2b958
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