Sfoglia il codice sorgente

rtc: ds1307: Add m41t0 to OF device ID table

m41t0 was added to the I2C device ID table but not the OF table. Fix that.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Alexandre Belloni 8 anni fa
parent
commit
db2f814194
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      drivers/rtc/rtc-ds1307.c

+ 4 - 0
drivers/rtc/rtc-ds1307.c

@@ -226,6 +226,10 @@ static const struct of_device_id ds1307_of_match[] = {
 		.compatible = "maxim,ds3231",
 		.data = (void *)ds_3231
 	},
+	{
+		.compatible = "st,m41t0",
+		.data = (void *)m41t00
+	},
 	{
 		.compatible = "st,m41t00",
 		.data = (void *)m41t00