diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-09 10:55:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-09 10:55:04 +0100 |
commit | b2cc1d18f57f8af42347a4b7a05afcc7e3e6d66d (patch) | |
tree | c7bf18bd3f6eef491dd62d383f836e4536c811cb /drivers/rtc/rtc-ds1307.c | |
parent | ac9c1beb361e3c71e0b9b59d38e5022f12c263c6 (diff) | |
parent | 459bf1fd31da2c091c6c1e3a7e0f6a1b1cbf588b (diff) | |
download | barebox-b2cc1d18f57f8af42347a4b7a05afcc7e3e6d66d.tar.gz barebox-b2cc1d18f57f8af42347a4b7a05afcc7e3e6d66d.tar.xz |
Merge branch 'for-next/misc'
Diffstat (limited to 'drivers/rtc/rtc-ds1307.c')
-rw-r--r-- | drivers/rtc/rtc-ds1307.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 73d88ba6f2..bb597305e5 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -14,7 +14,6 @@ */ #include <common.h> -#include <init.h> #include <driver.h> #include <xfuncs.h> #include <malloc.h> @@ -112,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 }, { } }; @@ -489,9 +489,4 @@ static struct driver_d ds1307_driver = { .probe = ds1307_probe, .id_table = ds1307_id, }; - -static int __init ds1307_init(void) -{ - return i2c_driver_register(&ds1307_driver); -} -device_initcall(ds1307_init); +device_i2c_driver(ds1307_driver); |