diff options
author | Javier Martinez Canillas <javier.martinez@collabora.co.uk> | 2015-05-13 17:18:01 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-06-25 01:13:37 +0200 |
commit | 2d0cca0db4134712c7a67694c5aab57a49e228f2 (patch) | |
tree | 23713506f6371c5bc0d5f925867652272914b143 /drivers/rtc | |
parent | 8ad0f5b682d2db108a15f850c54b577720c11699 (diff) | |
download | talos-op-linux-2d0cca0db4134712c7a67694c5aab57a49e228f2.tar.gz talos-op-linux-2d0cca0db4134712c7a67694c5aab57a49e228f2.zip |
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>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-max77686.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c index 7632a87784c3..7184a0eda793 100644 --- a/drivers/rtc/rtc-max77686.c +++ b/drivers/rtc/rtc-max77686.c @@ -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 = { |