Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Really init sc_ioptype in mfi_attach()



details:   https://anonhg.NetBSD.org/src/rev/92046993ca57
branches:  trunk
changeset: 780778:92046993ca57
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Aug 05 22:47:36 2012 +0000

description:
Really init sc_ioptype in mfi_attach()

diffstat:

 sys/dev/ic/mfi.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r c0e4e430336a -r 92046993ca57 sys/dev/ic/mfi.c
--- a/sys/dev/ic/mfi.c  Sun Aug 05 21:21:41 2012 +0000
+++ b/sys/dev/ic/mfi.c  Sun Aug 05 22:47:36 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfi.c,v 1.41 2012/08/05 17:23:25 bouyer Exp $ */
+/* $NetBSD: mfi.c,v 1.42 2012/08/05 22:47:36 bouyer Exp $ */
 /* $OpenBSD: mfi.c,v 1.66 2006/11/28 23:59:45 dlg Exp $ */
 /*
  * Copyright (c) 2006 Marco Peereboom <marco%peereboom.us@localhost>
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfi.c,v 1.41 2012/08/05 17:23:25 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfi.c,v 1.42 2012/08/05 22:47:36 bouyer Exp $");
 
 #include "bio.h"
 
@@ -740,6 +740,8 @@
 
        DNPRINTF(MFI_D_MISC, "%s: mfi_attach\n", DEVNAME(sc));
 
+       sc->sc_ioptype = iop;
+
        switch (iop) {
        case MFI_IOP_XSCALE:
                sc->sc_iop = &mfi_iop_xscale;



Home | Main Index | Thread Index | Old Index