tpm: factor out tpm 1.x duration calculation to tpm1-cmd.c
[sfrench/cifs-2.6.git] / drivers / char / tpm / st33zp24 / st33zp24.c
index abd675bec88c8435a6b1277b3fac6336d0339c21..16be974955ea352a24047d61459e4c6a47cc76a2 100644 (file)
@@ -430,7 +430,7 @@ static int st33zp24_send(struct tpm_chip *chip, unsigned char *buf,
                ordinal = be32_to_cpu(*((__be32 *) (buf + 6)));
 
                ret = wait_for_stat(chip, TPM_STS_DATA_AVAIL | TPM_STS_VALID,
-                               tpm_calc_ordinal_duration(chip, ordinal),
+                               tpm1_calc_ordinal_duration(chip, ordinal),
                                &tpm_dev->read_queue, false);
                if (ret < 0)
                        goto out_err;