[ACPI] 8250 driver now checks for acpi_register_gsi() errors

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
Kenji Kaneshige 2005-07-28 14:42:00 -04:00 committed by Len Brown
parent 71df30f8e3
commit 58e0276245

View File

@ -47,18 +47,30 @@ static acpi_status acpi_serial_port(struct uart_port *port,
static acpi_status acpi_serial_ext_irq(struct uart_port *port, static acpi_status acpi_serial_ext_irq(struct uart_port *port,
struct acpi_resource_ext_irq *ext_irq) struct acpi_resource_ext_irq *ext_irq)
{ {
if (ext_irq->number_of_interrupts > 0) int rc;
port->irq = acpi_register_gsi(ext_irq->interrupts[0],
if (ext_irq->number_of_interrupts > 0) {
rc = acpi_register_gsi(ext_irq->interrupts[0],
ext_irq->edge_level, ext_irq->active_high_low); ext_irq->edge_level, ext_irq->active_high_low);
if (rc < 0)
return AE_ERROR;
port->irq = rc;
}
return AE_OK; return AE_OK;
} }
static acpi_status acpi_serial_irq(struct uart_port *port, static acpi_status acpi_serial_irq(struct uart_port *port,
struct acpi_resource_irq *irq) struct acpi_resource_irq *irq)
{ {
if (irq->number_of_interrupts > 0) int rc;
port->irq = acpi_register_gsi(irq->interrupts[0],
if (irq->number_of_interrupts > 0) {
rc = acpi_register_gsi(irq->interrupts[0],
irq->edge_level, irq->active_high_low); irq->edge_level, irq->active_high_low);
if (rc < 0)
return AE_ERROR;
port->irq = rc;
}
return AE_OK; return AE_OK;
} }