summaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random/pic32-rng.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-06-29 10:04:04 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2020-07-09 10:25:13 +0200
commite05231a53b7f85793983e36c187aa2494649f4ad (patch)
tree2eda0c208eea7e555d775432ee525095cdc4e590 /drivers/char/hw_random/pic32-rng.c
parenthwrng: st - Fix W=1 unused variable warning (diff)
downloadlinux-e05231a53b7f85793983e36c187aa2494649f4ad.tar.xz
linux-e05231a53b7f85793983e36c187aa2494649f4ad.zip
hwrng: pic32 - 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/hw_random/pic32-rng.c')
-rw-r--r--drivers/char/hw_random/pic32-rng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/pic32-rng.c b/drivers/char/hw_random/pic32-rng.c
index 81080cb2294e..e8210c1715cf 100644
--- a/drivers/char/hw_random/pic32-rng.c
+++ b/drivers/char/hw_random/pic32-rng.c
@@ -119,7 +119,7 @@ static int pic32_rng_remove(struct platform_device *pdev)
return 0;
}
-static const struct of_device_id pic32_rng_of_match[] = {
+static const struct of_device_id pic32_rng_of_match[] __maybe_unused = {
{ .compatible = "microchip,pic32mzda-rng", },
{ /* sentinel */ }
};