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

rtc: max77802: Report platform modalias to fix module autoload

If the rtc-max77802 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
9bde31df 2d0cca0d

+1
+1
drivers/rtc/rtc-max77802.c
··· 484 484 { "max77802-rtc", 0 }, 485 485 {}, 486 486 }; 487 + MODULE_DEVICE_TABLE(platform, rtc_id); 487 488 488 489 static struct platform_driver max77802_rtc_driver = { 489 490 .driver = {