Skip to content

Commit e78f919

Browse files
Jingoo Hanherbertx
authored andcommitted
crypto: omap-des - 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 ea7b284 commit e78f919

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/crypto/omap-des.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,9 +1196,7 @@ static int omap_des_resume(struct device *dev)
11961196
}
11971197
#endif
11981198

1199-
static const struct dev_pm_ops omap_des_pm_ops = {
1200-
SET_SYSTEM_SLEEP_PM_OPS(omap_des_suspend, omap_des_resume)
1201-
};
1199+
static SIMPLE_DEV_PM_OPS(omap_des_pm_ops, omap_des_suspend, omap_des_resume);
12021200

12031201
static struct platform_driver omap_des_driver = {
12041202
.probe = omap_des_probe,

0 commit comments

Comments
 (0)