From b68a467e515b254ba5c769b3cdf7b1b554204bb5 Mon Sep 17 00:00:00 2001 From: he Date: Wed, 17 Oct 2007 17:57:11 +0000 Subject: [PATCH] Correct the order of the arguments to disk_init(). --- sys/dev/ofw/ofdisk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ofw/ofdisk.c b/sys/dev/ofw/ofdisk.c index 56aac98f68bf..91bfc3196bbc 100644 --- a/sys/dev/ofw/ofdisk.c +++ b/sys/dev/ofw/ofdisk.c @@ -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 -__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 #include @@ -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");