1
0
Fork 0

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>
hifive-unleashed-5.1
Giulio Benetti 2018-05-16 23:08:39 +02:00 committed by Alexandre Belloni
parent 5089ea15ba
commit 146a552c67
1 changed files with 1 additions and 1 deletions

View File

@ -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",