summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi_support/acpi_asus.c
diff options
context:
space:
mode:
authorphilip <philip@FreeBSD.org>2004-04-23 17:41:05 +0000
committerphilip <philip@FreeBSD.org>2004-04-23 17:41:05 +0000
commitea8607cc654d539160ae9028be70619b55ca9507 (patch)
tree02ab42d2103a148c2b7a9f77132b249228f93443 /sys/dev/acpi_support/acpi_asus.c
parentfd3f8b3142cd4f1ab39c008864b8f886537b7388 (diff)
downloadFreeBSD-src-ea8607cc654d539160ae9028be70619b55ca9507.zip
FreeBSD-src-ea8607cc654d539160ae9028be70619b55ca9507.tar.gz
Enable the led-toggling magic. Compiling files which are in the kernel into
modules is a very nice way to produce hard-to-find panics. Who would look for a bug in a Makefile anyway? Has anyone seen the pointy hat? :-o Approved by: njl (mentor)
Diffstat (limited to 'sys/dev/acpi_support/acpi_asus.c')
-rw-r--r--sys/dev/acpi_support/acpi_asus.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/dev/acpi_support/acpi_asus.c b/sys/dev/acpi_support/acpi_asus.c
index d0c450d..c914c9a 100644
--- a/sys/dev/acpi_support/acpi_asus.c
+++ b/sys/dev/acpi_support/acpi_asus.c
@@ -40,10 +40,6 @@ __FBSDID("$FreeBSD$");
* Asus laptop which doesn't appear to be supported, or strange things happen
* when using this driver, please report to <acpi@FreeBSD.org>.
*
- * XXX:
- * Led support is disabled for the time being because it causes the kernel to
- * panic when unloading the module. This is being investigated.
- *
*/
#include "opt_acpi.h"
@@ -173,11 +169,9 @@ static int acpi_asus_probe(device_t dev);
static int acpi_asus_attach(device_t dev);
static int acpi_asus_detach(device_t dev);
-#ifdef notyet
static void acpi_asus_mled(device_t dev, int state);
static void acpi_asus_tled(device_t dev, int state);
static void acpi_asus_wled(device_t dev, int state);
-#endif
static int acpi_asus_sysctl_brn(SYSCTL_HANDLER_ARGS);
static int acpi_asus_sysctl_lcd(SYSCTL_HANDLER_ARGS);
@@ -285,7 +279,6 @@ acpi_asus_attach(device_t dev)
SYSCTL_CHILDREN(acpi_sc->acpi_sysctl_tree),
OID_AUTO, "asus", CTLFLAG_RD, 0, "");
-#ifdef notyet
/* Attach leds */
if (sc->model->mled_set)
sc->s_mled = led_create((led_t *)acpi_asus_mled, dev, "mled");
@@ -295,7 +288,6 @@ acpi_asus_attach(device_t dev)
if (sc->model->wled_set)
sc->s_wled = led_create((led_t *)acpi_asus_wled, dev, "wled");
-#endif
/* Attach brightness for GPLV/SPLV models */
if (sc->model->brn_get &&
@@ -385,7 +377,6 @@ acpi_asus_detach(device_t dev)
sc = device_get_softc(dev);
-#ifdef notyet
/* Turn the lights off */
if (sc->model->mled_set)
led_destroy(sc->s_mled);
@@ -395,7 +386,6 @@ acpi_asus_detach(device_t dev)
if (sc->model->wled_set)
led_destroy(sc->s_wled);
-#endif
/* Remove notify handler */
AcpiRemoveNotifyHandler(sc->handle,
@@ -407,7 +397,6 @@ acpi_asus_detach(device_t dev)
return (0);
}
-#ifdef notyet
static void
acpi_asus_mled(device_t dev, int state)
{
@@ -467,7 +456,6 @@ acpi_asus_wled(device_t dev, int state)
AcpiEvaluateObject(sc->handle, sc->model->wled_set, &Args, NULL);
}
-#endif
static int
acpi_asus_sysctl_brn(SYSCTL_HANDLER_ARGS)
OpenPOWER on IntegriCloud