projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95a6231
)
hwrng: npcm - Fix W=1 unused variable warning
author
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 29 Jun 2020 08:03:53 +0000
(18:03 +1000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 9 Jul 2020 08:25:11 +0000
(18:25 +1000)
This patch fixes an unused variable warning when this driver is
built-in with CONFIG_OF=n.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/npcm-rng.c
patch
|
blob
|
history
diff --git
a/drivers/char/hw_random/npcm-rng.c
b/drivers/char/hw_random/npcm-rng.c
index
01d0440
..
5d0d13f
100644
(file)
--- a/
drivers/char/hw_random/npcm-rng.c
+++ b/
drivers/char/hw_random/npcm-rng.c
@@
-161,7
+161,7
@@
static const struct dev_pm_ops npcm_rng_pm_ops = {
pm_runtime_force_resume)
};
-static const struct of_device_id rng_dt_id[] = {
+static const struct of_device_id rng_dt_id[]
__maybe_unused
= {
{ .compatible = "nuvoton,npcm750-rng", },
{},
};