From: Bjorn Helgaas Date: Mon, 12 May 2008 21:02:18 +0000 (-0700) Subject: PNP: set IRQ index in sysfs "set irq" interface X-Git-Tag: v2.6.26-rc3~92 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f2a5f24a279a21229e8c42198e21e2c8ce289129;p=linux-2.6-omap-h63xx.git PNP: set IRQ index in sysfs "set irq" interface 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 Cc: Len Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/pnp/interface.c b/drivers/pnp/interface.c index 5d9301de177..5695a79f3a5 100644 --- a/drivers/pnp/interface.c +++ b/drivers/pnp/interface.c @@ -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)) {