* [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers
@ 2015-05-13 15:18 Javier Martinez Canillas
2015-05-13 15:18 ` [PATCH 1/2] rtc: max77686: Report platform modalias to fix module autoload Javier Martinez Canillas
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Javier Martinez Canillas @ 2015-05-13 15:18 UTC (permalink / raw)
To: Alexandre Belloni
Cc: Alessandro Zummo, Olof Johansson, Doug Anderson,
Krzysztof Kozlowski, Chanwoo Choi, rtc-linux, linux-samsung-soc,
linux-kernel, Javier Martinez Canillas
Hello Alexandre and Alessandro,
This is a trivial series that fixes module autoloading for the Maxim
MAX77686 and MAX77802 RTC drivers that didn't export their platform
device ID table with MODULE_DEVICE_TABLE() so modalias information
was not available.
The series is composed of the following patches:
Javier Martinez Canillas (2):
rtc: max77686: Report platform modalias to fix module autoload
rtc: max77802: Report platform modalias to fix module autoload
drivers/rtc/rtc-max77686.c | 1 +
drivers/rtc/rtc-max77802.c | 1 +
2 files changed, 2 insertions(+)
Best regards,
Javier
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] rtc: max77686: Report platform modalias to fix module autoload
2015-05-13 15:18 [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers Javier Martinez Canillas
@ 2015-05-13 15:18 ` Javier Martinez Canillas
2015-05-13 15:18 ` [PATCH 2/2] rtc: max77802: " Javier Martinez Canillas
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Javier Martinez Canillas @ 2015-05-13 15:18 UTC (permalink / raw)
To: Alexandre Belloni
Cc: Alessandro Zummo, Olof Johansson, Doug Anderson,
Krzysztof Kozlowski, Chanwoo Choi, rtc-linux, linux-samsung-soc,
linux-kernel, Javier Martinez Canillas
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] rtc: max77802: Report platform modalias to fix module autoload
2015-05-13 15:18 [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers Javier Martinez Canillas
2015-05-13 15:18 ` [PATCH 1/2] rtc: max77686: Report platform modalias to fix module autoload Javier Martinez Canillas
@ 2015-05-13 15:18 ` Javier Martinez Canillas
2015-05-13 23:47 ` [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers Krzysztof Kozlowski
2015-05-18 22:45 ` Alexandre Belloni
3 siblings, 0 replies; 5+ messages in thread
From: Javier Martinez Canillas @ 2015-05-13 15:18 UTC (permalink / raw)
To: Alexandre Belloni
Cc: Alessandro Zummo, Olof Johansson, Doug Anderson,
Krzysztof Kozlowski, Chanwoo Choi, rtc-linux, linux-samsung-soc,
linux-kernel, Javier Martinez Canillas
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>
---
drivers/rtc/rtc-max77802.c | 1 +
1 file changed, 1 insertion(+)
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 = {
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers
2015-05-13 15:18 [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers Javier Martinez Canillas
2015-05-13 15:18 ` [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 23:47 ` Krzysztof Kozlowski
2015-05-18 22:45 ` Alexandre Belloni
3 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-13 23:47 UTC (permalink / raw)
To: Javier Martinez Canillas, Alexandre Belloni
Cc: Alessandro Zummo, Olof Johansson, Doug Anderson, Chanwoo Choi,
rtc-linux, linux-samsung-soc, linux-kernel
On 14.05.2015 00:18, Javier Martinez Canillas wrote:
> Hello Alexandre and Alessandro,
>
> This is a trivial series that fixes module autoloading for the Maxim
> MAX77686 and MAX77802 RTC drivers that didn't export their platform
> device ID table with MODULE_DEVICE_TABLE() so modalias information
> was not available.
>
> The series is composed of the following patches:
>
> Javier Martinez Canillas (2):
> rtc: max77686: Report platform modalias to fix module autoload
> rtc: max77802: Report platform modalias to fix module autoload
>
> drivers/rtc/rtc-max77686.c | 1 +
> drivers/rtc/rtc-max77802.c | 1 +
> 2 files changed, 2 insertions(+)
For the patchset:
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers
2015-05-13 15:18 [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers Javier Martinez Canillas
` (2 preceding siblings ...)
2015-05-13 23:47 ` [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers Krzysztof Kozlowski
@ 2015-05-18 22:45 ` Alexandre Belloni
3 siblings, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2015-05-18 22:45 UTC (permalink / raw)
To: Javier Martinez Canillas
Cc: Alessandro Zummo, Olof Johansson, Doug Anderson,
Krzysztof Kozlowski, Chanwoo Choi, rtc-linux, linux-samsung-soc,
linux-kernel
On 13/05/2015 at 17:18:00 +0200, Javier Martinez Canillas wrote :
> Hello Alexandre and Alessandro,
>
> This is a trivial series that fixes module autoloading for the Maxim
> MAX77686 and MAX77802 RTC drivers that didn't export their platform
> device ID table with MODULE_DEVICE_TABLE() so modalias information
> was not available.
>
> The series is composed of the following patches:
>
> Javier Martinez Canillas (2):
> rtc: max77686: Report platform modalias to fix module autoload
> rtc: max77802: Report platform modalias to fix module autoload
>
Both applied, thanks.
> drivers/rtc/rtc-max77686.c | 1 +
> drivers/rtc/rtc-max77802.c | 1 +
> 2 files changed, 2 insertions(+)
>
> Best regards,
> Javier
>
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-05-18 22:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-13 15:18 [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers Javier Martinez Canillas
2015-05-13 15:18 ` [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 23:47 ` [PATCH 0/2] rtc: Fix module autoload for max77xx RTC drivers Krzysztof Kozlowski
2015-05-18 22:45 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox