diff options
Diffstat (limited to 'drivers/pnp/isapnp')
-rw-r--r-- | drivers/pnp/isapnp/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pnp/isapnp/core.c b/drivers/pnp/isapnp/core.c index ca4457ec403b..c5b92526963b 100644 --- a/drivers/pnp/isapnp/core.c +++ b/drivers/pnp/isapnp/core.c | |||
@@ -486,7 +486,7 @@ static void __init isapnp_parse_port_resource(struct pnp_dev *dev, | |||
486 | port->max = (tmp[4] << 8) | tmp[3]; | 486 | port->max = (tmp[4] << 8) | tmp[3]; |
487 | port->align = tmp[5]; | 487 | port->align = tmp[5]; |
488 | port->size = tmp[6]; | 488 | port->size = tmp[6]; |
489 | port->flags = tmp[0] ? PNP_PORT_FLAG_16BITADDR : 0; | 489 | port->flags = tmp[0] ? IORESOURCE_IO_16BIT_ADDR : 0; |
490 | pnp_register_port_resource(dev, option, port); | 490 | pnp_register_port_resource(dev, option, port); |
491 | } | 491 | } |
492 | 492 | ||
@@ -507,7 +507,7 @@ static void __init isapnp_parse_fixed_port_resource(struct pnp_dev *dev, | |||
507 | port->min = port->max = (tmp[1] << 8) | tmp[0]; | 507 | port->min = port->max = (tmp[1] << 8) | tmp[0]; |
508 | port->size = tmp[2]; | 508 | port->size = tmp[2]; |
509 | port->align = 0; | 509 | port->align = 0; |
510 | port->flags = PNP_PORT_FLAG_FIXED; | 510 | port->flags = IORESOURCE_IO_FIXED; |
511 | pnp_register_port_resource(dev, option, port); | 511 | pnp_register_port_resource(dev, option, port); |
512 | } | 512 | } |
513 | 513 | ||