summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2006-02-02 04:03:00 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2006-02-02 04:03:00 +0000
commitd682258fd5d10397510d1e0c3330b29f70359078 (patch)
tree86d5c83cd948fb04906dd04893b4612e2f49449f /sys
parentbfc4a81d2a41d4c8091f44ca72e461cf36a18c7d (diff)
Backout lcd_suspend on lid close, found to cause crashes.
requested by jolan, prodded by bob.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/zaurus/zaurus/zaurus_lcd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/arch/zaurus/zaurus/zaurus_lcd.c b/sys/arch/zaurus/zaurus/zaurus_lcd.c
index d4b800860ec..00335888a61 100644
--- a/sys/arch/zaurus/zaurus/zaurus_lcd.c
+++ b/sys/arch/zaurus/zaurus/zaurus_lcd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_lcd.c,v 1.18 2005/12/22 18:47:25 deraadt Exp $ */
+/* $OpenBSD: zaurus_lcd.c,v 1.19 2006/02/02 04:02:59 drahn Exp $ */
/* $NetBSD: lubbock_lcd.c,v 1.1 2003/08/09 19:38:53 bsh Exp $ */
/*
@@ -169,8 +169,6 @@ lcd_match(struct device *parent, void *cf, void *aux)
return 1;
}
-struct pxa2x0_lcd_softc *lcd_softc;
-
void
lcd_attach(struct device *parent, struct device *self, void *aux)
{
@@ -193,7 +191,6 @@ lcd_attach(struct device *parent, struct device *self, void *aux)
/* Start with approximately 40% of full brightness. */
lcd_set_brightness(3);
- lcd_softc = sc;
(void)powerhook_establish(lcd_power, sc);
}
@@ -392,10 +389,8 @@ lcd_blank(int blank)
if (blank) {
lcd_set_brightness(0);
lcdisblank = 1;
- pxa2x0_lcd_suspend(lcd_softc);
} else {
lcdisblank = 0;
- pxa2x0_lcd_resume(lcd_softc);
lcd_set_brightness(lcd_get_brightness());
}
}