1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Date: Thu, 11 Mar 2021 08:26:14 +0100
3 Subject: [PATCH] nvmem: brcm_nvram: provide NVMEM content to the NVRAM driver
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
8 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
10 drivers/nvmem/brcm_nvram.c | 3 +++
11 1 file changed, 3 insertions(+)
13 --- a/drivers/nvmem/brcm_nvram.c
14 +++ b/drivers/nvmem/brcm_nvram.c
16 * Copyright (C) 2021 Rafał Miłecki <rafal@milecki.pl>
19 +#include <linux/bcm47xx_nvram.h>
21 #include <linux/mod_devicetable.h>
22 #include <linux/module.h>
23 @@ -46,6 +47,8 @@ static int brcm_nvram_probe(struct platf
24 if (IS_ERR(priv->base))
25 return PTR_ERR(priv->base);
27 + bcm47xx_nvram_init_from_iomem(priv->base, resource_size(res));
31 config.size = resource_size(res);