Commit eb515c60 authored by Herbert Xu's avatar Herbert Xu

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 414a3c1b
...@@ -99,7 +99,7 @@ static int hisi_rng_probe(struct platform_device *pdev) ...@@ -99,7 +99,7 @@ static int hisi_rng_probe(struct platform_device *pdev)
return 0; 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,hip04-rng" },
{ .compatible = "hisilicon,hip05-rng" }, { .compatible = "hisilicon,hip05-rng" },
{ } { }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment