diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 7d4918978164..50fd82ac3805 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr_disk.c,v 1.91 2008/01/31 18:30:55 dyoung Exp $ */ +/* $NetBSD: subr_disk.c,v 1.92 2008/02/28 04:55:47 matt Exp $ */ /*- * Copyright (c) 1996, 1997, 1999, 2000 The NetBSD Foundation, Inc. @@ -74,7 +74,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.91 2008/01/31 18:30:55 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.92 2008/02/28 04:55:47 matt Exp $"); #include #include @@ -185,7 +185,7 @@ disk_find(const char *name) } void -disk_init(struct disk *diskp, const char *name, struct dkdriver *driver) +disk_init(struct disk *diskp, const char *name, const struct dkdriver *driver) { /* diff --git a/sys/sys/disk.h b/sys/sys/disk.h index ca82ae8846eb..a84a597de15f 100644 --- a/sys/sys/disk.h +++ b/sys/sys/disk.h @@ -1,4 +1,4 @@ -/* $NetBSD: disk.h,v 1.49 2008/02/11 22:40:14 dyoung Exp $ */ +/* $NetBSD: disk.h,v 1.50 2008/02/28 04:55:47 matt Exp $ */ /*- * Copyright (c) 1996, 1997, 2004 The NetBSD Foundation, Inc. @@ -425,7 +425,7 @@ struct disk { */ struct io_stats *dk_stats; - struct dkdriver *dk_driver; /* pointer to driver */ + const struct dkdriver *dk_driver; /* pointer to driver */ /* * Information required to be the parent of a disk wedge. @@ -505,7 +505,7 @@ struct proc; void disk_attach(struct disk *); void disk_detach(struct disk *); -void disk_init(struct disk *, const char *, struct dkdriver *); +void disk_init(struct disk *, const char *, const struct dkdriver *); void disk_destroy(struct disk *); void disk_busy(struct disk *); void disk_unbusy(struct disk *, long, int);