hwrng: imx-rngc - don't init of_device_id's data
authorMartin Kaiser <martin@kaiser.cx>
Fri, 19 May 2023 16:11:19 +0000 (18:11 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 24 May 2023 10:12:33 +0000 (18:12 +0800)
We have no device-specific data for fsl,imx25-rngb. There's no need to
set .data = NULL, this is the default.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/imx-rngc.c

index c807fdb..1a6a5dd 100644 (file)
@@ -321,7 +321,7 @@ static int __maybe_unused imx_rngc_resume(struct device *dev)
 static SIMPLE_DEV_PM_OPS(imx_rngc_pm_ops, imx_rngc_suspend, imx_rngc_resume);
 
 static const struct of_device_id imx_rngc_dt_ids[] = {
-       { .compatible = "fsl,imx25-rngb", .data = NULL, },
+       { .compatible = "fsl,imx25-rngb" },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, imx_rngc_dt_ids);