Skip to content

Commit ae12fe2

Browse files
Jingoo Hanherbertx
authored andcommitted
crypto: omap-sham - Use SIMPLE_DEV_PM_OPS macro
Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent e78f919 commit ae12fe2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/crypto/omap-sham.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,9 +2022,7 @@ static int omap_sham_resume(struct device *dev)
20222022
}
20232023
#endif
20242024

2025-
static const struct dev_pm_ops omap_sham_pm_ops = {
2026-
SET_SYSTEM_SLEEP_PM_OPS(omap_sham_suspend, omap_sham_resume)
2027-
};
2025+
static SIMPLE_DEV_PM_OPS(omap_sham_pm_ops, omap_sham_suspend, omap_sham_resume);
20282026

20292027
static struct platform_driver omap_sham_driver = {
20302028
.probe = omap_sham_probe,

0 commit comments

Comments
 (0)