diff options
| author | christos <christos@NetBSD.org> | 2014-12-31 19:52:04 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2014-12-31 19:52:04 +0000 |
| commit | 4a331aac448bc6ebd006fa2ea80af68f57c666eb (patch) | |
| tree | a61e69370e02aa55f74db2134eb4c32a0ce55868 /sys/dev/cgd.c | |
| parent | 7e0dbe4aff861a57f08f15f13b40808d8bd26a6f (diff) | |
make more drivers use disk_ioctl, and add a dev parameter to it so that
we can merge the "easy" disklabel ioctls to it. Ultimately all this will
go do dk_ioctl once all the drivers have been converted.
Diffstat (limited to 'sys/dev/cgd.c')
| -rw-r--r-- | sys/dev/cgd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/cgd.c b/sys/dev/cgd.c index dcae7bc6a00..66c7bb156eb 100644 --- a/sys/dev/cgd.c +++ b/sys/dev/cgd.c @@ -1,4 +1,4 @@ -/* $NetBSD: cgd.c,v 1.93 2014/12/30 20:18:44 christos Exp $ */ +/* $NetBSD: cgd.c,v 1.94 2014/12/31 19:52:05 christos Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.93 2014/12/30 20:18:44 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.94 2014/12/31 19:52:05 christos Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -567,7 +567,7 @@ cgdioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l) break; } - error = disk_ioctl(&dksc->sc_dkdev, cmd, data, flag, l); + error = disk_ioctl(&dksc->sc_dkdev, dev, cmd, data, flag, l); if (error != EPASSTHROUGH) return (error); |
