Correct the order of the arguments to disk_init().

This commit is contained in:
he 2007-10-17 17:57:11 +00:00
parent 55ec699f95
commit b68a467e51
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ofdisk.c,v 1.38 2007/10/08 16:41:12 ad Exp $ */
/* $NetBSD: ofdisk.c,v 1.39 2007/10/17 17:57:11 he Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ofdisk.c,v 1.38 2007/10/08 16:41:12 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: ofdisk.c,v 1.39 2007/10/17 17:57:11 he Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@ -134,7 +134,7 @@ ofdisk_attach(struct device *parent, struct device *self, void *aux)
of->sc_phandle = oba->oba_phandle;
of->sc_unit = oba->oba_unit;
of->sc_ihandle = 0;
disk_init(&of->sc_dk, &ofdisk_dkdriver, of->sc_dev.dv_xname);
disk_init(&of->sc_dk, of->sc_dev.dv_xname, &ofdisk_dkdriver);
disk_attach(&of->sc_dk);
printf("\n");