Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/nand Fix build for missing chip.



details:   https://anonhg.NetBSD.org/src/rev/76f61468e115
branches:  trunk
changeset: 790809:76f61468e115
user:      htodd <htodd%NetBSD.org@localhost>
date:      Tue Oct 22 01:01:27 2013 +0000

description:
Fix build for missing chip.

diffstat:

 sys/dev/nand/nand_bbt.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r 74a87fd9178f -r 76f61468e115 sys/dev/nand/nand_bbt.c
--- a/sys/dev/nand/nand_bbt.c   Mon Oct 21 20:05:50 2013 +0000
+++ b/sys/dev/nand/nand_bbt.c   Tue Oct 22 01:01:27 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nand_bbt.c,v 1.6 2013/10/21 17:47:28 mbalmer Exp $     */
+/*     $NetBSD: nand_bbt.c,v 1.7 2013/10/22 01:01:27 htodd Exp $       */
 
 /*-
  * Copyright (c) 2011 Department of Software Engineering,
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nand_bbt.c,v 1.6 2013/10/21 17:47:28 mbalmer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand_bbt.c,v 1.7 2013/10/22 01:01:27 htodd Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -201,9 +201,11 @@
 nand_bbt_block_mark(device_t self, flash_off_t block, uint8_t marker)
 {
        struct nand_softc *sc = device_private(self);
+       struct nand_chip *chip = &sc->sc_chip;
        struct nand_bbt *bbt = &sc->sc_bbt;
        uint8_t clean;
 
+       __USE(chip);
        KASSERT(block < chip->nc_size / chip->nc_block_size);
 
        clean = (~0x03 << ((block % 4) * 2));
@@ -218,10 +220,12 @@
 nand_bbt_block_isbad(device_t self, flash_off_t block)
 {
        struct nand_softc *sc = device_private(self);
+       struct nand_chip *chip = &sc->sc_chip;
        struct nand_bbt *bbt = &sc->sc_bbt;
        uint8_t byte, marker;
        bool result;
 
+       __USE(chip);
        KASSERT(block < chip->nc_size / chip->nc_block_size);
 
        /* get byte containing the 2 bit marker for this block */



Home | Main Index | Thread Index | Old Index