diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2020-06-29 11:03:57 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-07-09 11:25:12 +0300 |
commit | eb515c60fac744c3e5bc16cbc4f2e0439b0a8b03 (patch) | |
tree | 2699af6fa22c84b52c1993d901611c459e4d6e1e /drivers/char | |
parent | 414a3c1b811da4ba4ebe441f3e69a17c053196a2 (diff) | |
download | linux-eb515c60fac744c3e5bc16cbc4f2e0439b0a8b03.tar.xz |
hwrng: hisi - Fix W=1 unused variable warning
This patch fixes an unused variable warning when this driver is
built-in with CONFIG_OF=n.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/hw_random/hisi-rng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/hisi-rng.c b/drivers/char/hw_random/hisi-rng.c index 6815e17a9834..96438f85cafa 100644 --- a/drivers/char/hw_random/hisi-rng.c +++ b/drivers/char/hw_random/hisi-rng.c @@ -99,7 +99,7 @@ static int hisi_rng_probe(struct platform_device *pdev) return 0; } -static const struct of_device_id hisi_rng_dt_ids[] = { +static const struct of_device_id hisi_rng_dt_ids[] __maybe_unused = { { .compatible = "hisilicon,hip04-rng" }, { .compatible = "hisilicon,hip05-rng" }, { } |