diff options
Diffstat (limited to 'drivers/rtc/rtc-rx8010.c')
-rw-r--r-- | drivers/rtc/rtc-rx8010.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c index d08da371912c..1ed3403ff8ac 100644 --- a/drivers/rtc/rtc-rx8010.c +++ b/drivers/rtc/rtc-rx8010.c | |||
@@ -59,6 +59,12 @@ static const struct i2c_device_id rx8010_id[] = { | |||
59 | }; | 59 | }; |
60 | MODULE_DEVICE_TABLE(i2c, rx8010_id); | 60 | MODULE_DEVICE_TABLE(i2c, rx8010_id); |
61 | 61 | ||
62 | static const struct of_device_id rx8010_of_match[] = { | ||
63 | { .compatible = "epson,rx8010" }, | ||
64 | { } | ||
65 | }; | ||
66 | MODULE_DEVICE_TABLE(of, rx8010_of_match); | ||
67 | |||
62 | struct rx8010_data { | 68 | struct rx8010_data { |
63 | struct i2c_client *client; | 69 | struct i2c_client *client; |
64 | struct rtc_device *rtc; | 70 | struct rtc_device *rtc; |
@@ -487,6 +493,7 @@ static int rx8010_probe(struct i2c_client *client, | |||
487 | static struct i2c_driver rx8010_driver = { | 493 | static struct i2c_driver rx8010_driver = { |
488 | .driver = { | 494 | .driver = { |
489 | .name = "rtc-rx8010", | 495 | .name = "rtc-rx8010", |
496 | .of_match_table = of_match_ptr(rx8010_of_match), | ||
490 | }, | 497 | }, |
491 | .probe = rx8010_probe, | 498 | .probe = rx8010_probe, |
492 | .id_table = rx8010_id, | 499 | .id_table = rx8010_id, |