]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
rtc: max77686: Report platform modalias to fix module autoload
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Wed, 13 May 2015 15:18:01 +0000 (17:18 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 24 Jun 2015 23:13:37 +0000 (01:13 +0200)
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>
drivers/rtc/rtc-max77686.c

index 7632a87784c3bcdafe27a9b1f1cbf3ae46c845cc..7184a0eda79384f8a59a5c8be8155018ba1a792e 100644 (file)
@@ -511,6 +511,7 @@ static const struct platform_device_id rtc_id[] = {
        { "max77686-rtc", 0 },
        {},
 };
+MODULE_DEVICE_TABLE(platform, rtc_id);
 
 static struct platform_driver max77686_rtc_driver = {
        .driver         = {