diff options
author | Axel Lin <[email protected]> | 2011-04-18 20:16:57 +0800 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2015-06-25 01:13:36 +0200 |
commit | 8ad0f5b682d2db108a15f850c54b577720c11699 (patch) | |
tree | efb459f9bfa29a67b45ff526ace15007869b4110 | |
parent | 9393996761e23280f259d706133c8f0cd139fd58 (diff) |
rtc: ds1672, max6900, max8998: Add MODULE_DEVICE_TABLE
The device table is required to load modules based on modaliases.
After adding MODULE_DEVICE_TABLE, below entries will be added to
modules.alias:
alias i2c:ds1672 rtc_ds1672
alias i2c:max6900 rtc_max6900
alias platform:lp3974-rtc rtc_max8998
alias platform:max8998-rtc rtc_max8998
Signed-off-by: Axel Lin <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Dale Farnsworth <[email protected]>
Cc: Minkyu Kang <[email protected]>
Cc: Joonyoung Shim <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
-rw-r--r-- | drivers/rtc/rtc-ds1672.c | 1 | ||||
-rw-r--r-- | drivers/rtc/rtc-max6900.c | 1 | ||||
-rw-r--r-- | drivers/rtc/rtc-max8998.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-ds1672.c b/drivers/rtc/rtc-ds1672.c index a4888dbca2e1..92b1cbf2c4a7 100644 --- a/drivers/rtc/rtc-ds1672.c +++ b/drivers/rtc/rtc-ds1672.c @@ -198,6 +198,7 @@ static struct i2c_device_id ds1672_id[] = { { "ds1672", 0 }, { } }; +MODULE_DEVICE_TABLE(i2c, ds1672_id); static struct i2c_driver ds1672_driver = { .driver = { diff --git a/drivers/rtc/rtc-max6900.c b/drivers/rtc/rtc-max6900.c index 4804985b876e..b2a76077bbfa 100644 --- a/drivers/rtc/rtc-max6900.c +++ b/drivers/rtc/rtc-max6900.c @@ -234,6 +234,7 @@ static struct i2c_device_id max6900_id[] = { { "max6900", 0 }, { } }; +MODULE_DEVICE_TABLE(i2c, max6900_id); static struct i2c_driver max6900_driver = { .driver = { diff --git a/drivers/rtc/rtc-max8998.c b/drivers/rtc/rtc-max8998.c index 5726ef7bd56e..30804b00985e 100644 --- a/drivers/rtc/rtc-max8998.c +++ b/drivers/rtc/rtc-max8998.c @@ -309,6 +309,7 @@ static const struct platform_device_id max8998_rtc_id[] = { { "lp3974-rtc", TYPE_LP3974 }, { } }; +MODULE_DEVICE_TABLE(platform, max8998_rtc_id); static struct platform_driver max8998_rtc_driver = { .driver = { |