Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ead995f8 authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by David Woodhouse
Browse files

mtd: introduce mtd_resume interface

parent 3fe4bae8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ static void physmap_flash_shutdown(struct platform_device *dev)
	for (i = 0; i < MAX_RESOURCES && info->mtd[i]; i++)
		if (info->mtd[i]->suspend && info->mtd[i]->resume)
			if (mtd_suspend(info->mtd[i]) == 0)
				info->mtd[i]->resume(info->mtd[i]);
				mtd_resume(info->mtd[i]);
}
#else
#define physmap_flash_shutdown NULL
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ static void pxa2xx_flash_shutdown(struct platform_device *dev)
	struct pxa2xx_flash_info *info = platform_get_drvdata(dev);

	if (info && mtd_suspend(info->mtd) == 0)
		info->mtd->resume(info->mtd);
		mtd_resume(info->mtd);
}
#else
#define pxa2xx_flash_shutdown NULL
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ static void rbtx4939_flash_shutdown(struct platform_device *dev)

	if (info->mtd->suspend && info->mtd->resume)
		if (mtd_suspend(info->mtd) == 0)
			info->mtd->resume(info->mtd);
			mtd_resume(info->mtd);
}
#else
#define rbtx4939_flash_shutdown NULL
+1 −1
Original line number Diff line number Diff line
@@ -378,7 +378,7 @@ static void sa1100_mtd_shutdown(struct platform_device *dev)
{
	struct sa_info *info = platform_get_drvdata(dev);
	if (info && mtd_suspend(info->mtd) == 0)
		info->mtd->resume(info->mtd);
		mtd_resume(info->mtd);
}
#else
#define sa1100_mtd_shutdown NULL
+1 −1
Original line number Diff line number Diff line
@@ -644,7 +644,7 @@ static void concat_resume(struct mtd_info *mtd)

	for (i = 0; i < concat->num_subdev; i++) {
		struct mtd_info *subdev = concat->subdev[i];
		subdev->resume(subdev);
		mtd_resume(subdev);
	}
}

Loading