From: Javier Martinez Canillas <javier.martinez@collabora.co.uk> To: Alexandre Belloni <alexandre.belloni@free-electrons.com> Cc: Alessandro Zummo <a.zummo@towertech.it>, Olof Johansson <olof@lixom.net>, Doug Anderson <dianders@chromium.org>, Krzysztof Kozlowski <k.kozlowski@samsung.com>, Chanwoo Choi <cw00.choi@samsung.com>, rtc-linux@googlegroups.com, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Martinez Canillas <javier.martinez@collabora.co.uk> Subject: [PATCH 1/2] rtc: max77686: Report platform modalias to fix module autoload Date: Wed, 13 May 2015 17:18:01 +0200 [thread overview] Message-ID: <1431530282-10672-2-git-send-email-javier.martinez@collabora.co.uk> (raw) In-Reply-To: <1431530282-10672-1-git-send-email-javier.martinez@collabora.co.uk> 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> --- drivers/rtc/rtc-max77686.c | 1 + 1 file changed, 1 insertion(+) 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 = { -- 2.1.4
WARNING: multiple messages have this Message-ID
From: Javier Martinez Canillas <javier.martinez@collabora.co.uk> To: Alexandre Belloni <alexandre.belloni@free-electrons.com> Cc: Alessandro Zummo <a.zummo@towertech.it>, Olof Johansson <olof@lixom.net>, Doug Anderson <dianders@chromium.org>, Krzysztof Kozlowski <k.kozlowski@samsung.com>, Chanwoo Choi <cw00.choi@samsung.com>, rtc-linux@googlegroups.com, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Martinez Canillas <javier.martinez@collabora.co.uk> Subject: [rtc-linux] [PATCH 1/2] rtc: max77686: Report platform modalias to fix module autoload Date: Wed, 13 May 2015 17:18:01 +0200 [thread overview] Message-ID: <1431530282-10672-2-git-send-email-javier.martinez@collabora.co.uk> (raw) In-Reply-To: <1431530282-10672-1-git-send-email-javier.martinez@collabora.co.uk> 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> --- drivers/rtc/rtc-max77686.c | 1 + 1 file changed, 1 insertion(+) 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 = { -- 2.1.4 -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
next prev parent reply other threads:[~2015-05-13 15:18 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-05-13 15:18 [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers Javier Martinez Canillas 2015-05-13 15:18 ` [rtc-linux] " Javier Martinez Canillas 2015-05-13 15:18 ` Javier Martinez Canillas [this message] 2015-05-13 15:18 ` [rtc-linux] [PATCH 1/2] rtc: max77686: Report platform modalias to fix module autoload Javier Martinez Canillas 2015-05-13 15:18 ` [PATCH 2/2] rtc: max77802: " Javier Martinez Canillas 2015-05-13 15:18 ` [rtc-linux] " Javier Martinez Canillas 2015-05-13 23:47 ` [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers Krzysztof Kozlowski 2015-05-13 23:47 ` [rtc-linux] " Krzysztof Kozlowski 2015-05-18 22:45 ` Alexandre Belloni 2015-05-18 22:45 ` [rtc-linux] " Alexandre Belloni
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1431530282-10672-2-git-send-email-javier.martinez@collabora.co.uk \ --to=javier.martinez@collabora.co.uk \ --cc=a.zummo@towertech.it \ --cc=alexandre.belloni@free-electrons.com \ --cc=cw00.choi@samsung.com \ --cc=dianders@chromium.org \ --cc=k.kozlowski@samsung.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=olof@lixom.net \ --cc=rtc-linux@googlegroups.com \ --subject='Re: [PATCH 1/2] rtc: max77686: Report platform modalias to fix module autoload' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.