-/* $OpenBSD: acpiec.c,v 1.33 2010/07/23 20:19:21 jordan Exp $ */
+/* $OpenBSD: acpiec.c,v 1.34 2010/07/23 20:21:58 jordan 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);