mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 15:53:22 -05:00
PCI: aardvark: Fix return value of MSI domain .alloc() method
commit e4313be1599d397625c14fb7826996813622decf upstream. MSI domain callback .alloc() (implemented by advk_msi_irq_domain_alloc() function) should return zero on success, since non-zero value indicates failure. When the driver was converted to generic MSI API in commitf21a8b1b68("PCI: aardvark: Move to MSI handling using generic MSI support"), it was converted so that it returns hwirq number. Fix this. Link: https://lore.kernel.org/r/[email protected] Fixes:f21a8b1b68("PCI: aardvark: Move to MSI handling using generic MSI support") Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Marek Behún <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
ee9cdca4d6
commit
0ea58b9bb9
1 changed files with 1 additions and 1 deletions
|
|
@ -942,7 +942,7 @@ static int advk_msi_irq_domain_alloc(struct irq_domain *domain,
|
|||
domain->host_data, handle_simple_irq,
|
||||
NULL, NULL);
|
||||
|
||||
return hwirq;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void advk_msi_irq_domain_free(struct irq_domain *domain,
|
||||
|
|
|
|||
Loading…
Reference in a new issue