diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-06-27 18:57:03 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2008-07-16 17:27:06 -0400 |
commit | 08c9f262f268f7948be13bf3a5bda1d635c649b4 (patch) | |
tree | df3a05a859071e5dd407eca3b4b218be1425d7a3 /drivers/pnp/pnpbios/rsparser.c | |
parent | b72ee1f11e373179ec703e0e5afaf585ed3a950a (diff) |
PNP: define PNP-specific IORESOURCE_IO_* flags alongside IRQ, DMA, MEM
PNP previously defined PNP_PORT_FLAG_16BITADDR and PNP_PORT_FLAG_FIXED
in a private header file, but put those flags in struct resource.flags
fields. Better to make them IORESOURCE_IO_* flags like the existing
IRQ, DMA, and MEM flags.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/pnpbios/rsparser.c')
-rw-r--r-- | drivers/pnp/pnpbios/rsparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pnp/pnpbios/rsparser.c b/drivers/pnp/pnpbios/rsparser.c index 01f0c3dd1b08..489fec3b7974 100644 --- a/drivers/pnp/pnpbios/rsparser.c +++ b/drivers/pnp/pnpbios/rsparser.c | |||
@@ -310,7 +310,7 @@ static __init void pnpbios_parse_port_option(struct pnp_dev *dev, | |||
310 | port->max = (p[5] << 8) | p[4]; | 310 | port->max = (p[5] << 8) | p[4]; |
311 | port->align = p[6]; | 311 | port->align = p[6]; |
312 | port->size = p[7]; | 312 | port->size = p[7]; |
313 | port->flags = p[1] ? PNP_PORT_FLAG_16BITADDR : 0; | 313 | port->flags = p[1] ? IORESOURCE_IO_16BIT_ADDR : 0; |
314 | pnp_register_port_resource(dev, option, port); | 314 | pnp_register_port_resource(dev, option, port); |
315 | } | 315 | } |
316 | 316 | ||
@@ -326,7 +326,7 @@ static __init void pnpbios_parse_fixed_port_option(struct pnp_dev *dev, | |||
326 | port->min = port->max = (p[2] << 8) | p[1]; | 326 | port->min = port->max = (p[2] << 8) | p[1]; |
327 | port->size = p[3]; | 327 | port->size = p[3]; |
328 | port->align = 0; | 328 | port->align = 0; |
329 | port->flags = PNP_PORT_FLAG_FIXED; | 329 | port->flags = IORESOURCE_IO_FIXED; |
330 | pnp_register_port_resource(dev, option, port); | 330 | pnp_register_port_resource(dev, option, port); |
331 | } | 331 | } |
332 | 332 | ||