diff options
| author | Marek Behún <[email protected]> | 2021-10-28 18:56:54 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2021-10-29 09:25:31 +0000 |
| commit | e4313be1599d397625c14fb7826996813622decf (patch) | |
| tree | 2faee7710c8d5c2f2d0a7036bbb724fc61034d1a /drivers/pci/controller/pci-aardvark.c | |
| parent | PCI: pci-bridge-emul: Fix emulation of W1C bits (diff) | |
| download | kernel-e4313be1599d397625c14fb7826996813622decf.tar.gz kernel-e4313be1599d397625c14fb7826996813622decf.zip | |
PCI: aardvark: Fix return value of MSI domain .alloc() method
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 commit f21a8b1b6837
("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: f21a8b1b6837 ("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]
Diffstat (limited to 'drivers/pci/controller/pci-aardvark.c')
| -rw-r--r-- | drivers/pci/controller/pci-aardvark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c index 10476c00b312..b45ff2911c80 100644 --- a/drivers/pci/controller/pci-aardvark.c +++ b/drivers/pci/controller/pci-aardvark.c @@ -1138,7 +1138,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, |
