summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOwain G. Ainsworth <oga@openbsd.org>2010-05-31 21:02:09 +0100
committerOwain G. Ainsworth <oga@openbsd.org>2010-05-31 21:02:09 +0100
commit46144fd8de64cb13fcf1ca79529bf0495ff9f8ab (patch)
treec003b81d18be4d83716b9db05aba21464fd09eb2 /src
parent1008cc64fcc5a3d4c613a0f752b29fc5dcd3efdd (diff)
Avoid warning by moving declaration before code.
Diffstat (limited to 'src')
-rw-r--r--src/i830_lvds.c4
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;