Skip to content

Commit 89dd369

Browse files
committed
tpm_crb_ffa: Remove unused export
Remove the export of tpm_crb_ffa_get_interface_version() as it has no callers outside tpm_crb_ffa. Fixes: eb93f07 ("tpm_crb: ffa_tpm: Implement driver compliant to CRB over FF-A") Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@opinsys.com> Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
1 parent 746d9e9 commit 89dd369

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/char/tpm/tpm_crb_ffa.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static int __tpm_crb_ffa_send_recieve(unsigned long func_id,
247247
*
248248
* Return: 0 on success, negative error code on failure.
249249
*/
250-
int tpm_crb_ffa_get_interface_version(u16 *major, u16 *minor)
250+
static int tpm_crb_ffa_get_interface_version(u16 *major, u16 *minor)
251251
{
252252
int rc;
253253

@@ -275,7 +275,6 @@ int tpm_crb_ffa_get_interface_version(u16 *major, u16 *minor)
275275

276276
return rc;
277277
}
278-
EXPORT_SYMBOL_GPL(tpm_crb_ffa_get_interface_version);
279278

280279
/**
281280
* tpm_crb_ffa_start() - signals the TPM that a field has changed in the CRB

drivers/char/tpm/tpm_crb_ffa.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111

1212
#if IS_REACHABLE(CONFIG_TCG_ARM_CRB_FFA)
1313
int tpm_crb_ffa_init(void);
14-
int tpm_crb_ffa_get_interface_version(u16 *major, u16 *minor);
1514
int tpm_crb_ffa_start(int request_type, int locality);
1615
#else
1716
static inline int tpm_crb_ffa_init(void) { return 0; }
18-
static inline int tpm_crb_ffa_get_interface_version(u16 *major, u16 *minor) { return 0; }
1917
static inline int tpm_crb_ffa_start(int request_type, int locality) { return 0; }
2018
#endif
2119

0 commit comments

Comments
 (0)