-/* $OpenBSD: clock.c,v 1.78 2023/07/25 18:16:21 cheloha Exp $ */
+/* $OpenBSD: clock.c,v 1.79 2023/08/07 17:11:13 miod Exp $ */
/* $NetBSD: clock.c,v 1.41 2001/07/24 19:29:25 eeh Exp $ */
/*
/* hard code to 8K? */
sz = ea->ea_regs[0].size;
- if (ea->ea_nvaddrs) {
- if (bus_space_map(ea->ea_memtag, ea->ea_vaddrs[0], 0,
- BUS_SPACE_MAP_PROMADDRESS, &cwi.cwi_bh) != 0) {
- printf("%s: can't map register\n", self->dv_xname);
- return;
- }
- bt = ea->ea_memtag;
- } else if (ebus_bus_map(ea->ea_iotag, 0,
+ if (ebus_bus_map(ea->ea_iotag, 0,
EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), sz, 0, 0, &cwi.cwi_bh) == 0) {
bt = ea->ea_iotag;
} else if (ebus_bus_map(ea->ea_memtag, 0,