drm/i915: don't preserve inherited configs with nothing on v2
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 12 Feb 2014 23:03:40 +0000 (15:03 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 13 Feb 2014 10:52:44 +0000 (11:52 +0100)
commit02f5eebb63ad52c832a81109d68718df6cb1155e
tree6550b15fe54668b182736d330db1cb3d3889f010
parentb45a67157a609da83f6b2e6803296c5ccb2f8c8d
drm/i915: don't preserve inherited configs with nothing on v2

It can be corrected later and may be what was actually desired, but
generally isn't, so if we find nothing is enabled, let the core DRM fb
helper figure something out.

v2: free the array too (Jesse)

Note that this also undoes any changes in case we bail out due to hw
cloning.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_fbdev.c