summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-09-19 03:14:58 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-09-28 14:20:59 +0200
commit2ab78755e93a10f6216c860a2012f3592f395603 (patch)
tree6a40091a4bf2de426389575eb4cfe05572fd7322 /drivers/rtc
parent4b3a6a3ac559d8f81d79e661ccde6bdd08395225 (diff)
downloadtalos-op-linux-2ab78755e93a10f6216c860a2012f3592f395603.tar.gz
talos-op-linux-2ab78755e93a10f6216c860a2012f3592f395603.zip
rtc: tx4939: fixup nvmem name and register size
The default word_size and stride of 1 are correct for the tx4939. Also fix the nvmem folder name. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-tx4939.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-tx4939.c b/drivers/rtc/rtc-tx4939.c
index 08dbefc79520..61c110b2045f 100644
--- a/drivers/rtc/rtc-tx4939.c
+++ b/drivers/rtc/rtc-tx4939.c
@@ -253,9 +253,7 @@ static int __init tx4939_rtc_probe(struct platform_device *pdev)
struct resource *res;
int irq, ret;
struct nvmem_config nvmem_cfg = {
- .name = "rv8803_nvram",
- .word_size = 4,
- .stride = 4,
+ .name = "tx4939_nvram",
.size = TX4939_RTC_REG_RAMSIZE,
.reg_read = tx4939_nvram_read,
.reg_write = tx4939_nvram_write,
OpenPOWER on IntegriCloud