aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-x1205.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-x1205.c')
-rw-r--r--drivers/rtc/rtc-x1205.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-x1205.c b/drivers/rtc/rtc-x1205.c
index b792ad4dcaa9..eaf55945f21b 100644
--- a/drivers/rtc/rtc-x1205.c
+++ b/drivers/rtc/rtc-x1205.c
@@ -553,12 +553,19 @@ static int x1205_remove(struct i2c_client *client)
553 return 0; 553 return 0;
554} 554}
555 555
556static const struct i2c_device_id x1205_id[] = {
557 { "x1205", 0 },
558 { }
559};
560MODULE_DEVICE_TABLE(i2c, x1205_id);
561
556static struct i2c_driver x1205_driver = { 562static struct i2c_driver x1205_driver = {
557 .driver = { 563 .driver = {
558 .name = "rtc-x1205", 564 .name = "rtc-x1205",
559 }, 565 },
560 .probe = x1205_probe, 566 .probe = x1205_probe,
561 .remove = x1205_remove, 567 .remove = x1205_remove,
568 .id_table = x1205_id,
562}; 569};
563 570
564static int __init x1205_init(void) 571static int __init x1205_init(void)