aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-pcf8563.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-pcf8563.c')
-rw-r--r--drivers/rtc/rtc-pcf8563.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c
index 7b3c31db0fc0..0fc4c3630780 100644
--- a/drivers/rtc/rtc-pcf8563.c
+++ b/drivers/rtc/rtc-pcf8563.c
@@ -300,12 +300,19 @@ static int pcf8563_remove(struct i2c_client *client)
300 return 0; 300 return 0;
301} 301}
302 302
303static const struct i2c_device_id pcf8563_id[] = {
304 { "pcf8563", 0 },
305 { }
306};
307MODULE_DEVICE_TABLE(i2c, pcf8563_id);
308
303static struct i2c_driver pcf8563_driver = { 309static struct i2c_driver pcf8563_driver = {
304 .driver = { 310 .driver = {
305 .name = "rtc-pcf8563", 311 .name = "rtc-pcf8563",
306 }, 312 },
307 .probe = pcf8563_probe, 313 .probe = pcf8563_probe,
308 .remove = pcf8563_remove, 314 .remove = pcf8563_remove,
315 .id_table = pcf8563_id,
309}; 316};
310 317
311static int __init pcf8563_init(void) 318static int __init pcf8563_init(void)