aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random
diff options
context:
space:
mode:
authorweiyongjun \(A\) <weiyongjun1@huawei.com>2018-01-23 02:08:56 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2018-02-15 23:26:44 +0800
commit40b776ae9fee71aa0761d7ceb876731780f92d87 (patch)
tree1e5d587cf46ae60c05b74614d6f54b9991162ce2 /drivers/char/hw_random
parentMAINTAINERS: update ccree entry (diff)
downloadlinux-dev-40b776ae9fee71aa0761d7ceb876731780f92d87.tar.xz
linux-dev-40b776ae9fee71aa0761d7ceb876731780f92d87.zip
hwrng: imx-rngc - make symbol imx_rngc_pm_ops static
Fixes the following sparse warnings: drivers/char/hw_random/imx-rngc.c:303:1: warning: symbol 'imx_rngc_pm_ops' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Martin Kaiser <martin@kaiser.cx> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r--drivers/char/hw_random/imx-rngc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/imx-rngc.c b/drivers/char/hw_random/imx-rngc.c
index eca87249bcff..250123bc4905 100644
--- a/drivers/char/hw_random/imx-rngc.c
+++ b/drivers/char/hw_random/imx-rngc.c
@@ -300,7 +300,7 @@ static int __maybe_unused imx_rngc_resume(struct device *dev)
return 0;
}
-SIMPLE_DEV_PM_OPS(imx_rngc_pm_ops, imx_rngc_suspend, imx_rngc_resume);
+static SIMPLE_DEV_PM_OPS(imx_rngc_pm_ops, imx_rngc_suspend, imx_rngc_resume);
static const struct of_device_id imx_rngc_dt_ids[] = {
{ .compatible = "fsl,imx25-rngb", .data = NULL, },