diff options
Diffstat (limited to 'drivers/mtd/ubi/wl.c')
-rw-r--r-- | drivers/mtd/ubi/wl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index d5076d2cce39..bf13ca275f85 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c | |||
@@ -1582,7 +1582,7 @@ static int paranoid_check_ec(struct ubi_device *ubi, int pnum, int ec) | |||
1582 | long long read_ec; | 1582 | long long read_ec; |
1583 | struct ubi_ec_hdr *ec_hdr; | 1583 | struct ubi_ec_hdr *ec_hdr; |
1584 | 1584 | ||
1585 | if (!(ubi_chk_flags & UBI_CHK_GEN)) | 1585 | if (!ubi->dbg->chk_gen) |
1586 | return 0; | 1586 | return 0; |
1587 | 1587 | ||
1588 | ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); | 1588 | ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); |
@@ -1623,7 +1623,7 @@ static int paranoid_check_in_wl_tree(const struct ubi_device *ubi, | |||
1623 | struct ubi_wl_entry *e, | 1623 | struct ubi_wl_entry *e, |
1624 | struct rb_root *root) | 1624 | struct rb_root *root) |
1625 | { | 1625 | { |
1626 | if (!(ubi_chk_flags & UBI_CHK_GEN)) | 1626 | if (!ubi->dbg->chk_gen) |
1627 | return 0; | 1627 | return 0; |
1628 | 1628 | ||
1629 | if (in_wl_tree(e, root)) | 1629 | if (in_wl_tree(e, root)) |
@@ -1649,7 +1649,7 @@ static int paranoid_check_in_pq(const struct ubi_device *ubi, | |||
1649 | struct ubi_wl_entry *p; | 1649 | struct ubi_wl_entry *p; |
1650 | int i; | 1650 | int i; |
1651 | 1651 | ||
1652 | if (!(ubi_chk_flags & UBI_CHK_GEN)) | 1652 | if (!ubi->dbg->chk_gen) |
1653 | return 0; | 1653 | return 0; |
1654 | 1654 | ||
1655 | for (i = 0; i < UBI_PROT_QUEUE_LEN; ++i) | 1655 | for (i = 0; i < UBI_PROT_QUEUE_LEN; ++i) |