X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fpnp%2Finterface.c;h=5695a79f3a5262fe3701752a41cce19b43fff937;hb=bf5b1935d8e42b36a34645788eb261461fe07f2e;hp=5d9301de17786bd35613e4eecda23ef48f5c35d6;hpb=c92758ceda477b1333fde35327cfa867dcc47bd1;p=linux-2.6 diff --git a/drivers/pnp/interface.c b/drivers/pnp/interface.c index 5d9301de17..5695a79f3a 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)) {