Commit eb515c60 authored by Herbert Xu's avatar Herbert Xu
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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" },
	{ }