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 <bjorn.helgaas@hp.com>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Bjorn Helgaas and committed by
Linus Torvalds
f2a5f24a 460817b9

+1 -1
+1 -1
drivers/pnp/interface.c
··· 424 start = simple_strtoul(buf, &buf, 0); 425 pnp_res = pnp_add_irq_resource(dev, start, 0); 426 if (pnp_res) 427 - nirq++; 428 continue; 429 } 430 if (!strnicmp(buf, "dma", 3)) {
··· 424 start = simple_strtoul(buf, &buf, 0); 425 pnp_res = pnp_add_irq_resource(dev, start, 0); 426 if (pnp_res) 427 + pnp_res->index = nirq++; 428 continue; 429 } 430 if (!strnicmp(buf, "dma", 3)) {