.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * AMD Secure Processor driver |
---|
3 | 4 | * |
---|
4 | | - * Copyright (C) 2017 Advanced Micro Devices, Inc. |
---|
| 5 | + * Copyright (C) 2017-2018 Advanced Micro Devices, Inc. |
---|
5 | 6 | * |
---|
6 | 7 | * Author: Tom Lendacky <thomas.lendacky@amd.com> |
---|
7 | 8 | * Author: Gary R Hook <gary.hook@amd.com> |
---|
8 | 9 | * 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. |
---|
13 | 10 | */ |
---|
14 | 11 | |
---|
15 | 12 | #include <linux/module.h> |
---|
.. | .. |
---|
214 | 211 | sp_del_device(sp); |
---|
215 | 212 | } |
---|
216 | 213 | |
---|
217 | | -#ifdef CONFIG_PM |
---|
218 | | -int sp_suspend(struct sp_device *sp, pm_message_t state) |
---|
| 214 | +int sp_suspend(struct sp_device *sp) |
---|
219 | 215 | { |
---|
220 | 216 | int ret; |
---|
221 | 217 | |
---|
222 | 218 | if (sp->dev_vdata->ccp_vdata) { |
---|
223 | | - ret = ccp_dev_suspend(sp, state); |
---|
| 219 | + ret = ccp_dev_suspend(sp); |
---|
224 | 220 | if (ret) |
---|
225 | 221 | return ret; |
---|
226 | 222 | } |
---|
.. | .. |
---|
240 | 236 | |
---|
241 | 237 | return 0; |
---|
242 | 238 | } |
---|
243 | | -#endif |
---|
244 | 239 | |
---|
245 | 240 | struct sp_device *sp_get_psp_master_device(void) |
---|
246 | 241 | { |
---|