drm/i915: Don't set up the LVDS if it isn't in the BIOS device table.
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 24 Nov 2009 01:48:47 +0000 (09:48 +0800)
committerEric Anholt <eric@anholt.net>
Tue, 1 Dec 2009 00:54:35 +0000 (16:54 -0800)
commit7cf4f69d3f4511f443473954456cb91d5514756d
treeee6792f00c1926bd4368aded316181d8ec118387
parentae266c98f580a9ba5e0bfdb1d1f0f70ab3cd807f
drm/i915: Don't set up the LVDS if it isn't in the BIOS device table.

We not only check the device type, but also check the addin_offset. If the
addin_offset is zero, it won't be initialized.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
[anholt: hand-applied due to conflicts]
drivers/gpu/drm/i915/intel_lvds.c