| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * STMicroelectronics TPM Linux driver for TPM ST33ZP24 |
|---|
| 3 | 4 | * 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/>. |
|---|
| 17 | 5 | */ |
|---|
| 18 | 6 | |
|---|
| 19 | 7 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 514 | 502 | |
|---|
| 515 | 503 | /* |
|---|
| 516 | 504 | * 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). |
|---|
| 518 | 506 | * @param: id, the i2c_device_id struct. |
|---|
| 519 | 507 | * @return: 0 in case of success. |
|---|
| 520 | 508 | * -1 in other case. |
|---|
| .. | .. |
|---|
| 649 | 637 | } else { |
|---|
| 650 | 638 | ret = tpm_pm_resume(dev); |
|---|
| 651 | 639 | if (!ret) |
|---|
| 652 | | - tpm_do_selftest(chip); |
|---|
| 640 | + tpm1_do_selftest(chip); |
|---|
| 653 | 641 | } |
|---|
| 654 | 642 | return ret; |
|---|
| 655 | 643 | } /* st33zp24_pm_resume() */ |
|---|