]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtc: tx4939: fixup nvmem name and register size
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 19 Sep 2018 01:14:58 +0000 (03:14 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 28 Sep 2018 12:20:59 +0000 (14:20 +0200)
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>
drivers/rtc/rtc-tx4939.c

index 08dbefc79520e57093cc3fefc9629e2f4200b95a..61c110b2045f836dbfffb54563e8d7057fae3cc1 100644 (file)
@@ -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,