From: Javier Martinez Canillas Date: Wed, 13 May 2015 15:18:02 +0000 (+0200) Subject: rtc: max77802: Report platform modalias to fix module autoload X-Git-Tag: firefly_0821_release~176^2~1560^2~26 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9bde31df56bdd8950e31ae409af5276cb324058c;p=firefly-linux-kernel-4.4.55.git 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 Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-max77802.c b/drivers/rtc/rtc-max77802.c index 7f8adf8d6feb..82ffcc5a5345 100644 --- a/drivers/rtc/rtc-max77802.c +++ b/drivers/rtc/rtc-max77802.c @@ -484,6 +484,7 @@ static const struct platform_device_id rtc_id[] = { { "max77802-rtc", 0 }, {}, }; +MODULE_DEVICE_TABLE(platform, rtc_id); static struct platform_driver max77802_rtc_driver = { .driver = {