|
|
| version 1.1, 2003/09/24 03:32:16 | version 1.2, 2004/05/05 22:19:22 |
|---|---|
| Line 247 acpi_battery_register(int type, int phys | Line 247 acpi_battery_register(int type, int phys |
| struct acpi_batteries *bp; | struct acpi_batteries *bp; |
| error = 0; | error = 0; |
| if ((bp = malloc(sizeof(*bp), M_ACPIBATT, M_NOWAIT)) == NULL) { | bp = malloc(sizeof(*bp), M_ACPIBATT, M_INTWAIT); |
| return(ENOMEM); | |
| } | |
| bp->battdesc.type = type; | bp->battdesc.type = type; |
| bp->battdesc.phys_unit = phys_unit; | bp->battdesc.phys_unit = phys_unit; |
| if (acpi_batteries_initted == 0) { | if (acpi_batteries_initted == 0) { |