From: weiyongjun \(A\) Date: Tue, 23 Jan 2018 02:08:56 +0000 (+0000) Subject: hwrng: imx-rngc - make symbol imx_rngc_pm_ops static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=40b776ae9fee71aa0761d7ceb876731780f92d87;p=linux.git 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 Reviewed-by: Martin Kaiser Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/imx-rngc.c b/drivers/char/hw_random/imx-rngc.c index eca87249bcff2..250123bc49054 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, },