From 2ab1c1bcc2c290b2e7a13b915d9e953b2cb2592d Mon Sep 17 00:00:00 2001 From: Marco Felsch Date: Thu, 18 Oct 2018 13:47:08 +0200 Subject: rtc: ds1307: Add ds3231 to driver's ID list In contrast to the ds1337 the ds3231 has a built-in temperature compensated crystal oscillator. The register map seems the same as the one from the ds1337, so using it's driver_data is okay. Signed-off-by: Marco Felsch Signed-off-by: Sascha Hauer --- drivers/rtc/rtc-ds1307.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 78419811bd..bb597305e5 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -111,6 +111,7 @@ static struct platform_device_id ds1307_id[] = { { "ds1308", ds_1338 }, /* Difference 1308 to 1338 irrelevant */ { "ds1338", ds_1338 }, { "ds1341", ds_1341 }, + { "ds3231", ds_1337 }, { "pt7c4338", ds_1307 }, { } }; -- cgit v1.2.3