diff options
author | Giulio Benetti <giulio.benetti@micronovasrl.com> | 2018-05-16 23:08:39 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-07-16 23:36:23 +0200 |
commit | 146a552c67b1adae50065d2c8f00169302f26c44 (patch) | |
tree | 490cff2e1eee2e932d22de8da89a594b67e2dacc /drivers/rtc/rtc-ds1307.c | |
parent | 5089ea15baa9e7b0cb49f36881f2cb27bf281789 (diff) | |
download | linux-146a552c67b1adae50065d2c8f00169302f26c44.tar.gz linux-146a552c67b1adae50065d2c8f00169302f26c44.tar.bz2 linux-146a552c67b1adae50065d2c8f00169302f26c44.zip |
rtc: ds1307: fix data pointer to m41t0
data field points to m41t00, instead it should point to m41t0.
Driver works correctly because on both cases(m41t0 and m41t00) chip_desc
are equal.
Point to right enum m41t0 instead of m41t00.
Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-ds1307.c')
-rw-r--r-- | drivers/rtc/rtc-ds1307.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index e9ec4160d7f6..aa4a161bae98 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -299,7 +299,7 @@ static const struct of_device_id ds1307_of_match[] = { }, { .compatible = "st,m41t0", - .data = (void *)m41t00 + .data = (void *)m41t0 }, { .compatible = "st,m41t00", |