diff options
author | Owain G. Ainsworth <oga@openbsd.org> | 2010-05-31 21:02:09 +0100 |
---|---|---|
committer | Owain G. Ainsworth <oga@openbsd.org> | 2010-06-07 21:52:31 +0100 |
commit | 7d7e11bfe0d5db3b4a398e7a32b46e0b46062a7d (patch) | |
tree | 05d3019e12a6ec822686c1194fbd1eb7b89de1fb | |
parent | 794220f764a65e689a325deee4502b046f71e155 (diff) |
Avoid warning by moving declaration before code.
-rw-r--r-- | src/i830_lvds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_lvds.c b/src/i830_lvds.c index eaba664c..6a50e967 100644 --- a/src/i830_lvds.c +++ b/src/i830_lvds.c @@ -985,6 +985,8 @@ i830_lvds_mode_set(xf86OutputPtr output, DisplayModePtr mode, static xf86OutputStatus i830_lvds_detect(xf86OutputPtr output) { + enum lid_status lid; + /* Fallback to origin, mark LVDS always connected. * From wider tests, we have seen both broken cases with * ACPI lid and SWF bit. So disable them for now until we @@ -992,8 +994,6 @@ i830_lvds_detect(xf86OutputPtr output) */ return XF86OutputStatusConnected; - enum lid_status lid; - lid = i830_lvds_acpi_lid_open(output); if (lid == LID_OPEN) return XF86OutputStatusConnected; |