cf5952ad5f2bf856952118c0729bba79de2b28f2
[openwrt/staging/stintel.git] /
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
4 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
7
8 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
9 ---
10 drivers/nvmem/brcm_nvram.c | 3 +++
11 1 file changed, 3 insertions(+)
12
13 --- a/drivers/nvmem/brcm_nvram.c
14 +++ b/drivers/nvmem/brcm_nvram.c
15 @@ -3,6 +3,7 @@
16 * Copyright (C) 2021 Rafał Miłecki <rafal@milecki.pl>
17 */
18
19 +#include <linux/bcm47xx_nvram.h>
20 #include <linux/io.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);
26
27 + bcm47xx_nvram_init_from_iomem(priv->base, resource_size(res));
28 +
29 config.dev = dev;
30 config.priv = priv;
31 config.size = resource_size(res);