mtdconcat.c (b66005cd3e6f104e0a1b6492110c337269b53ec3) mtdconcat.c (3fe4bae88460869a8e553397cd9057a4ee7ca341)
1/*
2 * MTD device concatenation layer
3 *
4 * Copyright © 2002 Robert Kaiser <rkaiser@sysgo.de>
5 * Copyright © 2002-2010 David Woodhouse <dwmw2@infradead.org>
6 *
7 * NAND support by Christian Gan <cgan@iders.ca>
8 *

--- 617 unchanged lines hidden (view full) ---

626
627static int concat_suspend(struct mtd_info *mtd)
628{
629 struct mtd_concat *concat = CONCAT(mtd);
630 int i, rc = 0;
631
632 for (i = 0; i < concat->num_subdev; i++) {
633 struct mtd_info *subdev = concat->subdev[i];
1/*
2 * MTD device concatenation layer
3 *
4 * Copyright © 2002 Robert Kaiser <rkaiser@sysgo.de>
5 * Copyright © 2002-2010 David Woodhouse <dwmw2@infradead.org>
6 *
7 * NAND support by Christian Gan <cgan@iders.ca>
8 *

--- 617 unchanged lines hidden (view full) ---

626
627static int concat_suspend(struct mtd_info *mtd)
628{
629 struct mtd_concat *concat = CONCAT(mtd);
630 int i, rc = 0;
631
632 for (i = 0; i < concat->num_subdev; i++) {
633 struct mtd_info *subdev = concat->subdev[i];
634 if ((rc = subdev->suspend(subdev)) < 0)
634 if ((rc = mtd_suspend(subdev)) < 0)
635 return rc;
636 }
637 return rc;
638}
639
640static void concat_resume(struct mtd_info *mtd)
641{
642 struct mtd_concat *concat = CONCAT(mtd);

--- 377 unchanged lines hidden ---
635 return rc;
636 }
637 return rc;
638}
639
640static void concat_resume(struct mtd_info *mtd)
641{
642 struct mtd_concat *concat = CONCAT(mtd);

--- 377 unchanged lines hidden ---