gma500: Fix suspend/resume functions
authorRyan Mallon <rmallon@gmail.com>
Fri, 27 Jan 2012 06:28:24 +0000 (17:28 +1100)
committerDave Airlie <airlied@redhat.com>
Fri, 27 Jan 2012 11:52:07 +0000 (11:52 +0000)
commit2d8357e66df9f7593cbe23b224b4ed06aff90e73
tree109fcb2cb068ed1fb46994db6e18b9e19899d11c
parent24a7eb7954bc22a1d514155d56a3c4cd5e9a6faa
gma500: Fix suspend/resume functions

Both the suspend and resume functions incorrectly set psbfb =
to_psb_fb(NULL) outside of the loop over all of the framebuffers. Fix
this by moving the assignment of psbfb inside the loop and removing the
initialisation of fb.

Signed-off-by: Ryan Mallon <rmallon@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/framebuffer.c