summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/sparc64/eeprom_ebus.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sparc64/sparc64/eeprom_ebus.c')
-rw-r--r--sys/sparc64/sparc64/eeprom_ebus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/eeprom_ebus.c b/sys/sparc64/sparc64/eeprom_ebus.c
index 43e8db7..3f63baa 100644
--- a/sys/sparc64/sparc64/eeprom_ebus.c
+++ b/sys/sparc64/sparc64/eeprom_ebus.c
@@ -132,8 +132,7 @@ eeprom_ebus_attach(device_t dev)
int rid, error;
rid = 0;
- res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0UL, ~0UL, 1,
- RF_ACTIVE);
+ res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE);
if (res == NULL) {
device_printf(dev, "could not allocate resources\n");
return (ENXIO);
OpenPOWER on IntegriCloud