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

rtc: max77686: Report platform modalias to fix module autoload

If the rtc-max77686 driver is built as a module, modalias information is
not filled so the module is not autoloaded. Use the MODULE_DEVICE_TABLE()
macro to export the platform ID table so the module contains that data.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

authored by

Javier Martinez Canillas and committed by
Alexandre Belloni
2d0cca0d 8ad0f5b6

+1
+1
drivers/rtc/rtc-max77686.c
··· 511 511 { "max77686-rtc", 0 }, 512 512 {}, 513 513 }; 514 + MODULE_DEVICE_TABLE(platform, rtc_id); 514 515 515 516 static struct platform_driver max77686_rtc_driver = { 516 517 .driver = {