Diff for /src/sys/dev/acpica5/acpi_battery.c between versions 1.1 and 1.2

version 1.1, 2004/02/21 06:48:08 version 1.2, 2004/05/05 22:19:24
Line 224  acpi_battery_register(int type, int phys Line 224  acpi_battery_register(int type, int phys
     int error;      int error;
   
     error = 0;      error = 0;
    bp = malloc(sizeof(*bp), M_ACPIBATT, M_NOWAIT);    bp = malloc(sizeof(*bp), M_ACPIBATT, M_INTWAIT);
    if (bp == NULL) 
        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) {

Removed from v.1.1  
changed lines
  Added in v.1.2