-/* $OpenBSD: acpiec.c,v 1.36 2010/07/27 06:12:50 deraadt Exp $ */
+/* $OpenBSD: acpiec.c,v 1.37 2010/07/27 21:55:54 marco Exp $ */
/*
* Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org>
*
printf(": Only single EC is supported\n");
return;
}
+ sc->sc_acpi->sc_ec = sc;
if (acpiec_getcrs(sc, aa)) {
printf(": Failed to read resource settings\n");
return;
}
- sc->sc_acpi->sc_ec = sc;
acpiec_get_events(sc);
dnprintf(10, "%s: GPE: %d\n", DEVNAME(sc), sc->sc_gpe);