staging: gma500: Skip bogus LVDS VBT mode and check for LVDS before adding backlight
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Tue, 24 May 2011 12:04:56 +0000 (13:04 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 19:28:41 +0000 (12:28 -0700)
commit3ab8be53155617fa7ecc5b8cd259a458727a1d90
tree834db02ffd3d5e66d972df7d8cd7d05213485fc5
parentd3ac0778801708caecb2b172328064255a350432
staging: gma500: Skip bogus LVDS VBT mode and check for LVDS before adding backlight

On the Fit-PC2 the VBT reports an invalid fixed panel mode for LVDS, this gets
in the way for SDVO. This patch makes VBT parsing skip the invalid mode. When
there is no LVDS output the backlight support crashes so the patch also checks
for this before enabling it.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/gma500/psb_drv.c
drivers/staging/gma500/psb_intel_bios.c