summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-09 14:53:50 +0900
committerHerbert Xu <herbert@gondor.apana.org.au>2013-08-09 16:41:30 +1000
commit75be45683d5ff3f859f9cb2082574f96f8fd768f (patch)
treee6c174785738dbb0bb85496a6b898324903522d4 /drivers/char
parentcc76daf793287b2c51b0b66153072b23cdb51c1c (diff)
downloadlinux-75be45683d5ff3f859f9cb2082574f96f8fd768f.tar.gz
linux-75be45683d5ff3f859f9cb2082574f96f8fd768f.tar.bz2
linux-75be45683d5ff3f859f9cb2082574f96f8fd768f.zip
hwrng: pixocel - Staticize 'rng_dev'
'rng_dev' is used only in this file. Fix the following sparse warning: drivers/char/hw_random/picoxcell-rng.c:36:15: warning: symbol 'rng_dev' was not declared. Should it be static? Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/hw_random/picoxcell-rng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/picoxcell-rng.c b/drivers/char/hw_random/picoxcell-rng.c
index 973b95113edf..3d4c2293c6f5 100644
--- a/drivers/char/hw_random/picoxcell-rng.c
+++ b/drivers/char/hw_random/picoxcell-rng.c
@@ -33,7 +33,7 @@
static void __iomem *rng_base;
static struct clk *rng_clk;
-struct device *rng_dev;
+static struct device *rng_dev;
static inline u32 picoxcell_trng_read_csr(void)
{