Commit b921ef63 authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] ACPIPNP handle IRQ resource value of 0 (David Shaohua Li)

Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent b16c829e
......@@ -304,7 +304,8 @@ static void pnpacpi_parse_irq_option(struct pnp_option *option,
return;
for(i = 0; i < p->number_of_interrupts; i++)
__set_bit(p->interrupts[i], irq->map);
if (p->interrupts[i])
__set_bit(p->interrupts[i], irq->map);
irq->flags = irq_flags(p->edge_level, p->active_high_low);
pnp_register_irq_resource(option, irq);
......@@ -324,7 +325,8 @@ static void pnpacpi_parse_ext_irq_option(struct pnp_option *option,
return;
for(i = 0; i < p->number_of_interrupts; i++)
__set_bit(p->interrupts[i], irq->map);
if (p->interrupts[i])
__set_bit(p->interrupts[i], irq->map);
irq->flags = irq_flags(p->edge_level, p->active_high_low);
pnp_register_irq_resource(option, irq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment