summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-06-29 11:03:53 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2020-07-09 11:25:11 +0300
commit9a150af05f6f73186e0017a37104b5eb061ee627 (patch)
treeedb7099f59e0876afb8d3b82f2fb0da253469b2e /drivers/char
parent95a62311edf3677c5b1d5ab74380dfa51e5f6b03 (diff)
downloadlinux-9a150af05f6f73186e0017a37104b5eb061ee627.tar.xz
hwrng: npcm - Fix W=1 unused variable warning
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>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/hw_random/npcm-rng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/npcm-rng.c b/drivers/char/hw_random/npcm-rng.c
index 01d04404d8c0..5d0d13f891b7 100644
--- 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", },
{},
};