projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
414a3c1
)
hwrng: hisi - Fix W=1 unused variable warning
author
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 29 Jun 2020 08:03:57 +0000
(18:03 +1000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 9 Jul 2020 08:25:12 +0000
(18:25 +1000)
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>
drivers/char/hw_random/hisi-rng.c
patch
|
blob
|
history
diff --git
a/drivers/char/hw_random/hisi-rng.c
b/drivers/char/hw_random/hisi-rng.c
index
6815e17
..
96438f8
100644
(file)
--- 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" },
{ }