mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-01 21:31:48 -05:00
rtc: rv3032: fix nvram nvmem priv pointer
The nvmem priv pointer is set to rv3032 but the rv3032_nvram_write and rv3032_nvram_read expect the regmap pointer. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20201108223710.1574331-1-alexandre.belloni@bootlin.com
This commit is contained in:
@@ -889,7 +889,7 @@ static int rv3032_probe(struct i2c_client *client)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
nvmem_cfg.priv = rv3032;
|
||||
nvmem_cfg.priv = rv3032->regmap;
|
||||
rtc_nvmem_register(rv3032->rtc, &nvmem_cfg);
|
||||
eeprom_cfg.priv = rv3032;
|
||||
rtc_nvmem_register(rv3032->rtc, &eeprom_cfg);
|
||||
|
||||
Reference in New Issue
Block a user