mtd: introduce mtd_suspend interface
[firefly-linux-kernel-4.4.55.git] / drivers / mtd / mtdconcat.c
index 272ebc01f95beb8fb011ae08114581fde8d2466f..36bb1c99925b3c48bba68184ceacccf1ac6ad754 100644 (file)
@@ -631,7 +631,7 @@ static int concat_suspend(struct mtd_info *mtd)
 
        for (i = 0; i < concat->num_subdev; i++) {
                struct mtd_info *subdev = concat->subdev[i];
-               if ((rc = subdev->suspend(subdev)) < 0)
+               if ((rc = mtd_suspend(subdev)) < 0)
                        return rc;
        }
        return rc;