]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
hwrng: hisi - Fix W=1 unused variable warning
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 29 Jun 2020 08:03:57 +0000 (18:03 +1000)
committerHerbert 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

index 6815e17a9834ca141b04f0fdae20f4101285ded5..96438f85cafa7124d85f3db377465e342c8d3038 100644 (file)
@@ -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" },
        { }