Skip to content

Commit

Permalink
crypto: caam - staticize caam_get_era()
Browse files Browse the repository at this point in the history
caam_get_era() is only used locally, so do not export this function
and make it static instead.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Fabio Estevam authored and Herbert Xu committed Apr 20, 2018
1 parent e7a9b05 commit b0039c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions drivers/crypto/caam/ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ static void kick_trng(struct platform_device *pdev, int ent_delay)
* caam_get_era() - Return the ERA of the SEC on SoC, based
* on "sec-era" propery in the DTS. This property is updated by u-boot.
**/
int caam_get_era(void)
static int caam_get_era(void)
{
struct device_node *caam_node;
int ret;
Expand All @@ -412,7 +412,6 @@ int caam_get_era(void)

return ret ? -ENOTSUPP : prop;
}
EXPORT_SYMBOL(caam_get_era);

static const struct of_device_id caam_match[] = {
{
Expand Down
2 changes: 0 additions & 2 deletions drivers/crypto/caam/ctrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#define CTRL_H

/* Prototypes for backend-level services exposed to APIs */
int caam_get_era(void);

extern bool caam_dpaa2;

#endif /* CTRL_H */

0 comments on commit b0039c0

Please sign in to comment.