Subject: [PATCH] nvmem: brcm_nvram: provide NVMEM content to the NVRAM driver
From: Rafał Miłecki <[email-masked]>
Date: Thu, 11 Mar 2021 08:26:14 +0100

Signed-off-by: Rafał Miłecki <[email-masked]>
---
 drivers/nvmem/brcm_nvram.c | 3 +++
 1 file changed, 3 insertions(+)

--- a/drivers/nvmem/brcm_nvram.c
+++ b/drivers/nvmem/brcm_nvram.c
@@ -3,6 +3,7 @@
  * Copyright (C) 2021 Rafał Miłecki <[email-masked]>
  */
 
+#include <linux/bcm47xx_nvram.h>
 #include <linux/io.h>
 #include <linux/mod_devicetable.h>
 #include <linux/module.h>
@@ -46,6 +47,8 @@ static int brcm_nvram_probe(struct platf
 	if (IS_ERR(priv->base))
 		return PTR_ERR(priv->base);
 
+	bcm47xx_nvram_init_from_iomem(priv->base, resource_size(res));
+
 	config.dev = dev;
 	config.priv = priv;
 	config.size = resource_size(res);