Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <axel.lin@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Dale Farnsworth <dale@farnsworth.org>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

authored by

Axel Lin and committed by
Alexandre Belloni
8ad0f5b6 93939967

+3
+1
drivers/rtc/rtc-ds1672.c
··· 198 198 { "ds1672", 0 }, 199 199 { } 200 200 }; 201 + MODULE_DEVICE_TABLE(i2c, ds1672_id); 201 202 202 203 static struct i2c_driver ds1672_driver = { 203 204 .driver = {
+1
drivers/rtc/rtc-max6900.c
··· 234 234 { "max6900", 0 }, 235 235 { } 236 236 }; 237 + MODULE_DEVICE_TABLE(i2c, max6900_id); 237 238 238 239 static struct i2c_driver max6900_driver = { 239 240 .driver = {
+1
drivers/rtc/rtc-max8998.c
··· 309 309 { "lp3974-rtc", TYPE_LP3974 }, 310 310 { } 311 311 }; 312 + MODULE_DEVICE_TABLE(platform, max8998_rtc_id); 312 313 313 314 static struct platform_driver max8998_rtc_driver = { 314 315 .driver = {