|
@@ -943,14 +943,14 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)
|
|
|
printk(KERN_DEBUG "%s: 0x%lx is busy\n",
|
|
|
__FUNCTION__, hdp->hd_phys_address);
|
|
|
iounmap(hdp->hd_address);
|
|
|
- return -EBUSY;
|
|
|
+ return AE_ALREADY_EXISTS;
|
|
|
}
|
|
|
} else if (res->type == ACPI_RESOURCE_TYPE_FIXED_MEMORY32) {
|
|
|
struct acpi_resource_fixed_memory32 *fixmem32;
|
|
|
|
|
|
fixmem32 = &res->data.fixed_memory32;
|
|
|
if (!fixmem32)
|
|
|
- return -EINVAL;
|
|
|
+ return AE_NO_MEMORY;
|
|
|
|
|
|
hdp->hd_phys_address = fixmem32->address;
|
|
|
hdp->hd_address = ioremap(fixmem32->address,
|
|
@@ -960,7 +960,7 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)
|
|
|
printk(KERN_DEBUG "%s: 0x%lx is busy\n",
|
|
|
__FUNCTION__, hdp->hd_phys_address);
|
|
|
iounmap(hdp->hd_address);
|
|
|
- return -EBUSY;
|
|
|
+ return AE_ALREADY_EXISTS;
|
|
|
}
|
|
|
} else if (res->type == ACPI_RESOURCE_TYPE_EXTENDED_IRQ) {
|
|
|
struct acpi_resource_extended_irq *irqp;
|