Skip to contentSkip to conversation

rtc: s5m: terminate s5m_rtc_id array with empty element

PATCH In review Andrey Ryabinin 2 participants 3 messages Jan 21, 2015 – Jan 22, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc: s5m: terminate s5m_rtc_id array with empty element

Array of platform_device_id elements should be terminated with empty element.

---
 drivers/rtc/rtc-s5m.c | 1 +
 1 file changed, 1 insertion(+)
drivers/rtc/rtc-s5m.c +1 -0
index b5e7c46..89ac1d5 100644
@@ -832,6 +832,7 @@ static SIMPLE_DEV_PM_OPS(s5m_rtc_pm_ops, s5m_rtc_suspend, s5m_rtc_resume);
 static const struct platform_device_id s5m_rtc_id[] = {
 	{ "s5m-rtc",		S5M8767X },
 	{ "s2mps14-rtc",	S2MPS14X },
+	{ },
 };
 
 static struct platform_driver s5m_rtc_driver = {
Signature · 1 line
2.2.1
Reviewed-by on v1 1/1
#1 lore raw

2015-01-21 16:06 GMT+01:00 Andrey Ryabinin <[email protected]>:

Quoted 7 lines

Array of platform_device_id elements should be terminated with empty element.

---
 drivers/rtc/rtc-s5m.c | 1 +
 1 file changed, 1 insertion(+)

Right, good catch.

Maybe also cc stable for fixing 5bccae6ec458 ("rtc: s5m-rtc: add real-time clock driver for s5m8767")?

Best regards,
Krzysztof

Quoted 26 lines
drivers/rtc/rtc-s5m.c +1 -1
index b5e7c46..89ac1d5 100644
@@ -832,6 +832,7 @@ static SIMPLE_DEV_PM_OPS(s5m_rtc_pm_ops, s5m_rtc_suspend, s5m_rtc_resume);
 static const struct platform_device_id s5m_rtc_id[] = {
        { "s5m-rtc",            S5M8767X },
        { "s2mps14-rtc",        S2MPS14X },
+       { },
 };
 
 static struct platform_driver s5m_rtc_driver = {
--

2.2.1

--
--
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 [email protected]. For more options, visit https://groups.google.com/d/optout.

#2 lore raw
Quoted 10 lines · Krzysztof Kozlowski

2015-01-21 16:06 GMT+01:00 Andrey Ryabinin <[email protected]>:

Quoted 7 lines

Array of platform_device_id elements should be terminated with empty element.

---
 drivers/rtc/rtc-s5m.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 7 lines

Right, good catch.

Maybe also cc stable for fixing 5bccae6ec458 ("rtc: s5m-rtc: add real-time clock driver for s5m8767")?

Probably. I didn't add stable tag because, I have no idea what are runtime effects of this bug, so I don't know whether this worth for stable or not.