ecc5f3974ea51232ae3853239f5ea7e559a14224
[openwrt/openwrt.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 @@ -136,6 +137,8 @@ static int brcm_nvram_probe(struct platf
24 if (err)
25 return err;
26
27 + bcm47xx_nvram_init_from_iomem(priv->base, resource_size(res));
28 +
29 config.dev = dev;
30 config.cells = priv->cells;
31 config.ncells = priv->ncells;