diff options
author | Javier Martinez Canillas <javier.martinez@collabora.co.uk> | 2015-05-13 11:18:02 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-06-24 19:13:37 -0400 |
commit | 9bde31df56bdd8950e31ae409af5276cb324058c (patch) | |
tree | dba670a28dc49c1c939399227ac6bb8b7a2fc9ce /drivers/rtc | |
parent | 2d0cca0db4134712c7a67694c5aab57a49e228f2 (diff) |
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>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-max77802.c | 1 |
1 files changed, 1 insertions, 0 deletions
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[] = { | |||
484 | { "max77802-rtc", 0 }, | 484 | { "max77802-rtc", 0 }, |
485 | {}, | 485 | {}, |
486 | }; | 486 | }; |
487 | MODULE_DEVICE_TABLE(platform, rtc_id); | ||
487 | 488 | ||
488 | static struct platform_driver max77802_rtc_driver = { | 489 | static struct platform_driver max77802_rtc_driver = { |
489 | .driver = { | 490 | .driver = { |