mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
dmaengine: ipu: remove bogus NO_IRQ reference
A workaround for a warning introduced a use of the NO_IRQ
macro that should have been gone for a long time.
It is clear from the code that the value cannot actually
be used, but apparently there was a configuration at
some point that caused a warning, so instead of just
reverting that patch, this rearranges the code in a way that
the warning cannot reappear.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 6ef41cf6f7
("dmaengine :ipu: change ipu_irq_handler() to remove compile warning")
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
524c6e04f8
commit
86c7e68364
1 changed files with 4 additions and 5 deletions
|
@ -286,22 +286,21 @@ static void ipu_irq_handler(struct irq_desc *desc)
|
||||||
raw_spin_unlock(&bank_lock);
|
raw_spin_unlock(&bank_lock);
|
||||||
while ((line = ffs(status))) {
|
while ((line = ffs(status))) {
|
||||||
struct ipu_irq_map *map;
|
struct ipu_irq_map *map;
|
||||||
unsigned int irq = NO_IRQ;
|
unsigned int irq;
|
||||||
|
|
||||||
line--;
|
line--;
|
||||||
status &= ~(1UL << line);
|
status &= ~(1UL << line);
|
||||||
|
|
||||||
raw_spin_lock(&bank_lock);
|
raw_spin_lock(&bank_lock);
|
||||||
map = src2map(32 * i + line);
|
map = src2map(32 * i + line);
|
||||||
if (map)
|
|
||||||
irq = map->irq;
|
|
||||||
raw_spin_unlock(&bank_lock);
|
|
||||||
|
|
||||||
if (!map) {
|
if (!map) {
|
||||||
|
raw_spin_unlock(&bank_lock);
|
||||||
pr_err("IPU: Interrupt on unmapped source %u bank %d\n",
|
pr_err("IPU: Interrupt on unmapped source %u bank %d\n",
|
||||||
line, i);
|
line, i);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
irq = map->irq;
|
||||||
|
raw_spin_unlock(&bank_lock);
|
||||||
generic_handle_irq(irq);
|
generic_handle_irq(irq);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue