gma500: Do sane FB cleanup
commit3cc76c1c69d6520837e2c6f21f4653df91c6cb77
authorAlan Cox <alan@linux.intel.com>
Tue, 5 Jul 2011 14:34:28 +0000 (5 15:34 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Jul 2011 15:20:37 +0000 (5 08:20 -0700)
tree0cd9559edd7c932590996bcdedd68a1520771ec3
parentdaab23f1f52bba4701f58b79855f1ad0cf523dca
gma500: Do sane FB cleanup

If we get a user frame buffer destroyed which is being displayed then clean
up the mess nicely. We can now run a slightly modified modetest including setting
modes, and handling crashes.

Modetest still blows up but this is because libdrm 2.4.25 is busted.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/gma500/psb_fb.c
drivers/staging/gma500/psb_intel_display.c