hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/crypto/ccp/sp-dev.c
....@@ -1,15 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * AMD Secure Processor driver
34 *
4
- * Copyright (C) 2017 Advanced Micro Devices, Inc.
5
+ * Copyright (C) 2017-2018 Advanced Micro Devices, Inc.
56 *
67 * Author: Tom Lendacky <thomas.lendacky@amd.com>
78 * Author: Gary R Hook <gary.hook@amd.com>
89 * Author: Brijesh Singh <brijesh.singh@amd.com>
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License version 2 as
12
- * published by the Free Software Foundation.
1310 */
1411
1512 #include <linux/module.h>
....@@ -214,13 +211,12 @@
214211 sp_del_device(sp);
215212 }
216213
217
-#ifdef CONFIG_PM
218
-int sp_suspend(struct sp_device *sp, pm_message_t state)
214
+int sp_suspend(struct sp_device *sp)
219215 {
220216 int ret;
221217
222218 if (sp->dev_vdata->ccp_vdata) {
223
- ret = ccp_dev_suspend(sp, state);
219
+ ret = ccp_dev_suspend(sp);
224220 if (ret)
225221 return ret;
226222 }
....@@ -240,7 +236,6 @@
240236
241237 return 0;
242238 }
243
-#endif
244239
245240 struct sp_device *sp_get_psp_master_device(void)
246241 {