diff options
Diffstat (limited to 'sys/dev/ofw/ofdisk.c')
-rw-r--r-- | sys/dev/ofw/ofdisk.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/ofw/ofdisk.c b/sys/dev/ofw/ofdisk.c index 5deea0c8146..69f4fe31d46 100644 --- a/sys/dev/ofw/ofdisk.c +++ b/sys/dev/ofw/ofdisk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofdisk.c,v 1.10 2006/03/15 20:20:41 miod Exp $ */ +/* $OpenBSD: ofdisk.c,v 1.11 2007/04/29 18:59:37 krw Exp $ */ /* $NetBSD: ofdisk.c,v 1.3 1996/10/13 01:38:13 christos Exp $ */ /* @@ -312,11 +312,8 @@ ofdioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) (struct disklabel *)data, /*of->sc_dk.dk_openmask */0, of->sc_dk.dk_cpulabel); if (error == 0 && cmd == DIOCWDINFO) - error = writedisklabel(MAKEDISKDEV(major(dev), - DISKUNIT(dev), RAW_PART), - ofdstrategy, - of->sc_dk.dk_label, - of->sc_dk.dk_cpulabel); + error = writedisklabel(DISKLABELDEV(dev), ofdstrategy, + of->sc_dk.dk_label, of->sc_dk.dk_cpulabel); return error; default: |