aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/resource.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-04-28 18:34:30 -0400
committerLen Brown <len.brown@intel.com>2008-04-29 03:22:27 -0400
commit784f01d5bdeae7d7005ede17305306b042ba2617 (patch)
tree5723e4bde087657b86bda865ac249b42a5c6a9cf /drivers/pnp/resource.c
parent06cb58a6eb0b689f95a6c055cfc400fd30c500c6 (diff)
PNP: add struct pnp_resource
This patch adds a "struct pnp_resource". This currently contains only a struct resource, but we will soon need additional PNP-specific information. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
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}