diff options
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r-- | drivers/mtd/ubi/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 7f293b284dd..ecedd75aae0 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c | |||
@@ -596,11 +596,11 @@ static int attach_by_scanning(struct ubi_device *ubi) | |||
596 | if (err) | 596 | if (err) |
597 | goto out_ai; | 597 | goto out_ai; |
598 | 598 | ||
599 | err = ubi_wl_init_scan(ubi, ai); | 599 | err = ubi_wl_init(ubi, ai); |
600 | if (err) | 600 | if (err) |
601 | goto out_vtbl; | 601 | goto out_vtbl; |
602 | 602 | ||
603 | err = ubi_eba_init_scan(ubi, ai); | 603 | err = ubi_eba_init(ubi, ai); |
604 | if (err) | 604 | if (err) |
605 | goto out_wl; | 605 | goto out_wl; |
606 | 606 | ||