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-Url: https://git.stricted.de/?a=commitdiff_plain;h=f2a5f24a279a21229e8c42198e21e2c8ce289129;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 5d9301de1778..5695a79f3a52 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)) {