drm/i915: fix gpio register detection logic for BIOS without VBT
authorShaohua Li <shaohua.li@intel.com>
Wed, 18 Nov 2009 07:15:02 +0000 (15:15 +0800)
committerEric Anholt <eric@anholt.net>
Tue, 1 Dec 2009 00:10:56 +0000 (16:10 -0800)
if no VBT is present, crt_ddc_bus will be left at 0, and cause us
to use that for the GPIO register offset. That's never a valid register
offset, so let the "undefined" value be 0 instead of -1.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
[anholt: clarified the commit message a bit]


No differences found