diff options
Diffstat (limited to 'drivers/mtd/nand/nandsim.c')
-rw-r--r-- | drivers/mtd/nand/nandsim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c index 9e04de043aa3..bdc1d15369f8 100644 --- a/drivers/mtd/nand/nandsim.c +++ b/drivers/mtd/nand/nandsim.c | |||
@@ -1433,7 +1433,7 @@ static inline u_char *NS_PAGE_BYTE_OFF(struct nandsim *ns) | |||
1433 | return NS_GET_PAGE(ns)->byte + ns->regs.column + ns->regs.off; | 1433 | return NS_GET_PAGE(ns)->byte + ns->regs.column + ns->regs.off; |
1434 | } | 1434 | } |
1435 | 1435 | ||
1436 | int do_read_error(struct nandsim *ns, int num) | 1436 | static int do_read_error(struct nandsim *ns, int num) |
1437 | { | 1437 | { |
1438 | unsigned int page_no = ns->regs.row; | 1438 | unsigned int page_no = ns->regs.row; |
1439 | 1439 | ||
@@ -1445,7 +1445,7 @@ int do_read_error(struct nandsim *ns, int num) | |||
1445 | return 0; | 1445 | return 0; |
1446 | } | 1446 | } |
1447 | 1447 | ||
1448 | void do_bit_flips(struct nandsim *ns, int num) | 1448 | static void do_bit_flips(struct nandsim *ns, int num) |
1449 | { | 1449 | { |
1450 | if (bitflips && prandom_u32() < (1 << 22)) { | 1450 | if (bitflips && prandom_u32() < (1 << 22)) { |
1451 | int flips = 1; | 1451 | int flips = 1; |