diff options
| author | Fabio Estevam <fabio.estevam@nxp.com> | 2018-04-11 08:45:19 -0400 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-04-20 12:58:36 -0400 |
| commit | b0039c00fbbbc3cb9c4b25852d81a2b4c193371d (patch) | |
| tree | 74d13f3de5776b7229bc9701fcf634a5c4926b96 /drivers/crypto/caam | |
| parent | e7a9b05ca4c707ff4b46a77963db48d085d383e0 (diff) | |
crypto: caam - staticize caam_get_era()
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>
Diffstat (limited to 'drivers/crypto/caam')
| -rw-r--r-- | drivers/crypto/caam/ctrl.c | 3 | ||||
| -rw-r--r-- | drivers/crypto/caam/ctrl.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index e4cc636e1104..bee690ab8650 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c | |||
| @@ -400,7 +400,7 @@ start_rng: | |||
| 400 | * caam_get_era() - Return the ERA of the SEC on SoC, based | 400 | * caam_get_era() - Return the ERA of the SEC on SoC, based |
| 401 | * on "sec-era" propery in the DTS. This property is updated by u-boot. | 401 | * on "sec-era" propery in the DTS. This property is updated by u-boot. |
| 402 | **/ | 402 | **/ |
| 403 | int caam_get_era(void) | 403 | static int caam_get_era(void) |
| 404 | { | 404 | { |
| 405 | struct device_node *caam_node; | 405 | struct device_node *caam_node; |
| 406 | int ret; | 406 | int ret; |
| @@ -412,7 +412,6 @@ int caam_get_era(void) | |||
| 412 | 412 | ||
| 413 | return ret ? -ENOTSUPP : prop; | 413 | return ret ? -ENOTSUPP : prop; |
| 414 | } | 414 | } |
| 415 | EXPORT_SYMBOL(caam_get_era); | ||
| 416 | 415 | ||
| 417 | static const struct of_device_id caam_match[] = { | 416 | static const struct of_device_id caam_match[] = { |
| 418 | { | 417 | { |
diff --git a/drivers/crypto/caam/ctrl.h b/drivers/crypto/caam/ctrl.h index be693a2cc25e..f3ecd67922a7 100644 --- a/drivers/crypto/caam/ctrl.h +++ b/drivers/crypto/caam/ctrl.h | |||
| @@ -9,8 +9,6 @@ | |||
| 9 | #define CTRL_H | 9 | #define CTRL_H |
| 10 | 10 | ||
| 11 | /* Prototypes for backend-level services exposed to APIs */ | 11 | /* Prototypes for backend-level services exposed to APIs */ |
| 12 | int caam_get_era(void); | ||
| 13 | |||
| 14 | extern bool caam_dpaa2; | 12 | extern bool caam_dpaa2; |
| 15 | 13 | ||
| 16 | #endif /* CTRL_H */ | 14 | #endif /* CTRL_H */ |
