aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/pnpbios/rsparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pnp/pnpbios/rsparser.c')
-rw-r--r--drivers/pnp/pnpbios/rsparser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pnp/pnpbios/rsparser.c b/drivers/pnp/pnpbios/rsparser.c
index c1f9e162d2c5..9f0538af0321 100644
--- a/drivers/pnp/pnpbios/rsparser.c
+++ b/drivers/pnp/pnpbios/rsparser.c
@@ -56,7 +56,7 @@ inline void pcibios_penalize_isa_irq(int irq, int active)
56 56
57static void pnpbios_parse_allocated_irqresource(struct pnp_dev *dev, int irq) 57static void pnpbios_parse_allocated_irqresource(struct pnp_dev *dev, int irq)
58{ 58{
59 struct pnp_resource_table *res = &dev->res; 59 struct pnp_resource_table *res = dev->res;
60 int i = 0; 60 int i = 0;
61 61
62 while (!(res->irq_resource[i].flags & IORESOURCE_UNSET) 62 while (!(res->irq_resource[i].flags & IORESOURCE_UNSET)
@@ -76,7 +76,7 @@ static void pnpbios_parse_allocated_irqresource(struct pnp_dev *dev, int irq)
76 76
77static void pnpbios_parse_allocated_dmaresource(struct pnp_dev *dev, int dma) 77static void pnpbios_parse_allocated_dmaresource(struct pnp_dev *dev, int dma)
78{ 78{
79 struct pnp_resource_table *res = &dev->res; 79 struct pnp_resource_table *res = dev->res;
80 int i = 0; 80 int i = 0;
81 81
82 while (i < PNP_MAX_DMA && 82 while (i < PNP_MAX_DMA &&
@@ -96,7 +96,7 @@ static void pnpbios_parse_allocated_dmaresource(struct pnp_dev *dev, int dma)
96static void pnpbios_parse_allocated_ioresource(struct pnp_dev *dev, 96static void pnpbios_parse_allocated_ioresource(struct pnp_dev *dev,
97 int io, int len) 97 int io, int len)
98{ 98{
99 struct pnp_resource_table *res = &dev->res; 99 struct pnp_resource_table *res = dev->res;
100 int i = 0; 100 int i = 0;
101 101
102 while (!(res->port_resource[i].flags & IORESOURCE_UNSET) 102 while (!(res->port_resource[i].flags & IORESOURCE_UNSET)
@@ -116,7 +116,7 @@ static void pnpbios_parse_allocated_ioresource(struct pnp_dev *dev,
116static void pnpbios_parse_allocated_memresource(struct pnp_dev *dev, 116static void pnpbios_parse_allocated_memresource(struct pnp_dev *dev,
117 int mem, int len) 117 int mem, int len)
118{ 118{
119 struct pnp_resource_table *res = &dev->res; 119 struct pnp_resource_table *res = dev->res;
120 int i = 0; 120 int i = 0;
121 121
122 while (!(res->mem_resource[i].flags & IORESOURCE_UNSET) 122 while (!(res->mem_resource[i].flags & IORESOURCE_UNSET)