gma500: Fix backlight crash
authorAlan Cox <alan@linux.intel.com>
Tue, 5 Jul 2011 14:44:34 +0000 (15:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Jul 2011 15:20:44 +0000 (08:20 -0700)
commit6a8ca6f5ffbca4ef92da34bd28465539c511b97e
tree94b8298b4bc65791eb4239e504d7aa5c7b9a1244
parenta11c3ec7e9565bd8aad41a151b1d05c271d859e9
gma500: Fix backlight crash

We need to check the NULL case earlier.

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