diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-12-11 13:45:17 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-12-11 13:46:32 +0800 |
commit | 80e2d90139dd99f50beb4f9353599608624b777d (patch) | |
tree | 4807e3f64c51f9f847d88d9d60477aac7399adc5 /src/i830_lvds.c | |
parent | 83377b543defdca7226d7c1a7794e4ff3d8b4c84 (diff) |
Let lid status be unknown if no acpi lid object found
Diffstat (limited to 'src/i830_lvds.c')
-rw-r--r-- | src/i830_lvds.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/i830_lvds.c b/src/i830_lvds.c index 73993db6..b1bf6eee 100644 --- a/src/i830_lvds.c +++ b/src/i830_lvds.c @@ -409,11 +409,9 @@ i830_lvds_acpi_lid_open(xf86OutputPtr output) lid_dir = opendir(ACPI_LID); - /* if acpi button loaded, but no lid device, assume no panel */ - if (lid_dir == NULL) { - ret = LID_CLOSE; + /* no acpi lid object found */ + if (lid_dir == NULL) goto out; - } while (1) { lid_dent = readdir(lid_dir); |