|
@@ -84,7 +84,7 @@ EXPORT_SYMBOL_GPL(tpm_put_ops);
|
|
|
*
|
|
|
* The return'd chip has been tpm_try_get_ops'd and must be released via
|
|
|
* tpm_put_ops
|
|
|
- */
|
|
|
+ */
|
|
|
struct tpm_chip *tpm_chip_find_get(int chip_num)
|
|
|
{
|
|
|
struct tpm_chip *chip, *res = NULL;
|
|
@@ -103,7 +103,7 @@ struct tpm_chip *tpm_chip_find_get(int chip_num)
|
|
|
}
|
|
|
} while (chip_prev != chip_num);
|
|
|
} else {
|
|
|
- chip = idr_find_slowpath(&dev_nums_idr, chip_num);
|
|
|
+ chip = idr_find(&dev_nums_idr, chip_num);
|
|
|
if (chip && !tpm_try_get_ops(chip))
|
|
|
res = chip;
|
|
|
}
|