aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pnp/resource.c')
-rw-r--r--drivers/pnp/resource.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c
index f7adc7eefbf8..7e9f4300e5f6 100644
--- a/drivers/pnp/resource.c
+++ b/drivers/pnp/resource.c
@@ -508,19 +508,19 @@ struct resource *pnp_get_resource(struct pnp_dev *dev,
508 case IORESOURCE_IO: 508 case IORESOURCE_IO:
509 if (num >= PNP_MAX_PORT) 509 if (num >= PNP_MAX_PORT)
510 return NULL; 510 return NULL;
511 return &res->port_resource[num]; 511 return &res->port[num].res;
512 case IORESOURCE_MEM: 512 case IORESOURCE_MEM:
513 if (num >= PNP_MAX_MEM) 513 if (num >= PNP_MAX_MEM)
514 return NULL; 514 return NULL;
515 return &res->mem_resource[num]; 515 return &res->mem[num].res;
516 case IORESOURCE_IRQ: 516 case IORESOURCE_IRQ:
517 if (num >= PNP_MAX_IRQ) 517 if (num >= PNP_MAX_IRQ)
518 return NULL; 518 return NULL;
519 return &res->irq_resource[num]; 519 return &res->irq[num].res;
520 case IORESOURCE_DMA: 520 case IORESOURCE_DMA:
521 if (num >= PNP_MAX_DMA) 521 if (num >= PNP_MAX_DMA)
522 return NULL; 522 return NULL;
523 return &res->dma_resource[num]; 523 return &res->dma[num].res;
524 } 524 }
525 return NULL; 525 return NULL;
526} 526}