Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromtorvalds/linux

Commita89bca2

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI / x86: boot: Propagate error code in acpi_gsi_to_irq()
acpi_get_override_irq() followed by acpi_register_gsi() returns negativeerror code on failure.Propagate it from acpi_gsi_to_irq() to callers.Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>[ rjw : Subject/changelog ]Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent7c7bcfe commita89bca2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎arch/x86/kernel/acpi/boot.c‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -619,17 +619,17 @@ int acpi_gsi_to_irq(u32 gsi, unsigned int *irqp)
619619
}
620620

621621
rc=acpi_get_override_irq(gsi,&trigger,&polarity);
622-
if (rc==0) {
623-
trigger=trigger ?ACPI_LEVEL_SENSITIVE :ACPI_EDGE_SENSITIVE;
624-
polarity=polarity ?ACPI_ACTIVE_LOW :ACPI_ACTIVE_HIGH;
625-
irq=acpi_register_gsi(NULL,gsi,trigger,polarity);
626-
if (irq >=0) {
627-
*irqp=irq;
628-
return0;
629-
}
630-
}
622+
if (rc)
623+
returnrc;
631624

632-
return-1;
625+
trigger=trigger ?ACPI_LEVEL_SENSITIVE :ACPI_EDGE_SENSITIVE;
626+
polarity=polarity ?ACPI_ACTIVE_LOW :ACPI_ACTIVE_HIGH;
627+
irq=acpi_register_gsi(NULL,gsi,trigger,polarity);
628+
if (irq<0)
629+
returnirq;
630+
631+
*irqp=irq;
632+
return0;
633633
}
634634
EXPORT_SYMBOL_GPL(acpi_gsi_to_irq);
635635

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp