Skip to content

Commit

Permalink
PNP: set IRQ index in sysfs "set irq" interface
Browse files Browse the repository at this point in the history
We have to set the ISAPNP register index when setting an IRQ via the sysfs
interface.  We already do it for IO, MEM, and DMA resources; I just missed the
IRQ one.

Signed-off-by: Bjorn Helgaas <[email protected]>
Cc: Len Brown <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Bjorn Helgaas authored and torvalds committed May 13, 2008
1 parent 460817b commit f2a5f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pnp/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ pnp_set_current_resources(struct device *dmdev, struct device_attribute *attr,
start = simple_strtoul(buf, &buf, 0);
pnp_res = pnp_add_irq_resource(dev, start, 0);
if (pnp_res)
nirq++;
pnp_res->index = nirq++;
continue;
}
if (!strnicmp(buf, "dma", 3)) {
Expand Down

0 comments on commit f2a5f24

Please sign in to comment.