summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev/hd.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-06-19 21:20:05 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-06-19 21:20:05 +0000
commit112d49e0e704d5b9b51da3af66c38cbf270cc187 (patch)
tree656b651ee22480ea842c07d02e8fbe7e33ce2a16 /sys/arch/hp300/dev/hd.c
parent72bcb29c7ea928dd11c6f9628fc42e2694b6fa2f (diff)
Unbreak
Diffstat (limited to 'sys/arch/hp300/dev/hd.c')
-rw-r--r--sys/arch/hp300/dev/hd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hp300/dev/hd.c b/sys/arch/hp300/dev/hd.c
index b15bf3ddcf5..3f9d01610a0 100644
--- a/sys/arch/hp300/dev/hd.c
+++ b/sys/arch/hp300/dev/hd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hd.c,v 1.67 2011/06/19 04:55:34 deraadt Exp $ */
+/* $OpenBSD: hd.c,v 1.68 2011/06/19 21:20:04 miod Exp $ */
/* $NetBSD: rd.c,v 1.33 1997/07/10 18:14:08 kleink Exp $ */
/*
@@ -1162,7 +1162,7 @@ hdioctl(dev, cmd, data, flag, p)
goto exit;
}
- if ((error = hdlock(sc)) != 0)
+ if ((error = disk_lock(&sc->sc_dkdev)) != 0)
goto exit;
error = setdisklabel(sc->sc_dkdev.dk_label,
@@ -1173,7 +1173,7 @@ hdioctl(dev, cmd, data, flag, p)
hdstrategy, sc->sc_dkdev.dk_label);
}
- hdunlock(sc);
+ disk_unlock(&sc->sc_dkdev);
goto exit;
default: