diff options
Diffstat (limited to 'drivers/pnp/pnpbios')
-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 | ||