diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-07-01 19:07:47 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-07-01 19:07:47 +0000 |
commit | 1ef850aae7fb905ac70b7dbe45d3449215d8511c (patch) | |
tree | 9efac00bb7d17fa544d56ec274cd630444cdc8d9 /sys | |
parent | 8c03cb3e1afb199716381f536c8b9539e2930e9d (diff) |
Use mapiodev() instead of mapdev() when applicable. This is just syntactic
sugar.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc/dev/obio.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc/dev/power.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/auxreg.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/sparc/dev/obio.c b/sys/arch/sparc/dev/obio.c index 26295b24e15..6e1234d8dfc 100644 --- a/sys/arch/sparc/dev/obio.c +++ b/sys/arch/sparc/dev/obio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: obio.c,v 1.17 2007/05/29 09:54:11 sobrado Exp $ */ +/* $OpenBSD: obio.c,v 1.18 2007/07/01 19:07:45 miod Exp $ */ /* $NetBSD: obio.c,v 1.37 1997/07/29 09:58:11 fair Exp $ */ /* @@ -349,9 +349,9 @@ vmeattach(parent, self, aux) node = ra->ra_node; sc->sc_reg = (struct vmebusreg *) - mapdev(&ra->ra_reg[0], 0, 0, ra->ra_reg[0].rr_len); + mapiodev(&ra->ra_reg[0], 0, ra->ra_reg[0].rr_len); sc->sc_vec = (struct vmebusvec *) - mapdev(&ra->ra_reg[1], 0, 0, ra->ra_reg[1].rr_len); + mapiodev(&ra->ra_reg[1], 0, ra->ra_reg[1].rr_len); /* * Get "range" property, though we don't do anything with it yet. diff --git a/sys/arch/sparc/dev/power.c b/sys/arch/sparc/dev/power.c index 4422aa7510f..bdf4624ab50 100644 --- a/sys/arch/sparc/dev/power.c +++ b/sys/arch/sparc/dev/power.c @@ -1,4 +1,4 @@ -/* $OpenBSD: power.c,v 1.9 2005/07/08 12:34:36 miod Exp $ */ +/* $OpenBSD: power.c,v 1.10 2007/07/01 19:07:45 miod Exp $ */ /* $NetBSD: power.c,v 1.2 1996/05/16 15:56:56 abrown Exp $ */ /* @@ -90,7 +90,7 @@ powerattach(struct device *parent, struct device *self, void *aux) struct confargs *ca = aux; struct romaux *ra = &ca->ca_ra; - power_reg = mapdev(ra->ra_reg, 0, 0, sizeof(long)); + power_reg = mapiodev(ra->ra_reg, 0, sizeof(long)); power_attached = 1; diff --git a/sys/arch/sparc/sparc/auxreg.c b/sys/arch/sparc/sparc/auxreg.c index 221d3b0c1a3..30976b6afa0 100644 --- a/sys/arch/sparc/sparc/auxreg.c +++ b/sys/arch/sparc/sparc/auxreg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auxreg.c,v 1.13 2005/07/08 12:36:38 miod Exp $ */ +/* $OpenBSD: auxreg.c,v 1.14 2007/07/01 19:07:46 miod Exp $ */ /* $NetBSD: auxreg.c,v 1.21 1997/05/24 20:15:59 pk Exp $ */ /* @@ -146,7 +146,7 @@ auxregattach(struct device *parent, struct device *self, void *aux) else regp = &sb_auxio2_reg; if (*regp == NULL) - *regp = mapdev(ra->ra_reg, 0, 0, sizeof(char)); + *regp = mapiodev(ra->ra_reg, 0, sizeof(char)); } else #endif if (auxio_reg == NULL) { |