hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/char/tpm/st33zp24/st33zp24.c
....@@ -1,19 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * STMicroelectronics TPM Linux driver for TPM ST33ZP24
34 * Copyright (C) 2009 - 2016 STMicroelectronics
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
175 */
186
197 #include <linux/module.h>
....@@ -514,7 +502,7 @@
514502
515503 /*
516504 * st33zp24_probe initialize the TPM device
517
- * @param: client, the i2c_client drescription (TPM I2C description).
505
+ * @param: client, the i2c_client description (TPM I2C description).
518506 * @param: id, the i2c_device_id struct.
519507 * @return: 0 in case of success.
520508 * -1 in other case.
....@@ -649,7 +637,7 @@
649637 } else {
650638 ret = tpm_pm_resume(dev);
651639 if (!ret)
652
- tpm_do_selftest(chip);
640
+ tpm1_do_selftest(chip);
653641 }
654642 return ret;
655643 } /* st33zp24_pm_resume() */