diff options
-rw-r--r-- | drivers/acpi/irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/irq.c b/drivers/acpi/irq.c index 830299a74b84..7c352cba0528 100644 --- a/drivers/acpi/irq.c +++ b/drivers/acpi/irq.c | |||
@@ -24,7 +24,7 @@ static struct fwnode_handle *acpi_gsi_domain_id; | |||
24 | * | 24 | * |
25 | * irq location updated with irq value [>0 on success, 0 on failure] | 25 | * irq location updated with irq value [>0 on success, 0 on failure] |
26 | * | 26 | * |
27 | * Returns: linux IRQ number on success (>0) | 27 | * Returns: 0 on success |
28 | * -EINVAL on failure | 28 | * -EINVAL on failure |
29 | */ | 29 | */ |
30 | int acpi_gsi_to_irq(u32 gsi, unsigned int *irq) | 30 | int acpi_gsi_to_irq(u32 gsi, unsigned int *irq) |
@@ -37,7 +37,7 @@ int acpi_gsi_to_irq(u32 gsi, unsigned int *irq) | |||
37 | * *irq == 0 means no mapping, that should | 37 | * *irq == 0 means no mapping, that should |
38 | * be reported as a failure | 38 | * be reported as a failure |
39 | */ | 39 | */ |
40 | return (*irq > 0) ? *irq : -EINVAL; | 40 | return (*irq > 0) ? 0 : -EINVAL; |
41 | } | 41 | } |
42 | EXPORT_SYMBOL_GPL(acpi_gsi_to_irq); | 42 | EXPORT_SYMBOL_GPL(acpi_gsi_to_irq); |
43 | 43 | ||