Commit 198bcce84a87bb9dcdb754d25252b69d7cbe855b

Authored by Andrey Ryabinin
Committed by Greg Kroah-Hartman
1 parent 072ef65108

drivers/rtc/rtc-s5m.c: terminate s5m_rtc_id array with empty element

commit 45cd15e600ec8006305ce83f62c7208c2cb7a052 upstream.

Array of platform_device_id elements should be terminated with empty
element.

Fixes: 5bccae6ec458 ("rtc: s5m-rtc: add real-time clock driver for s5m8767")
Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/rtc/rtc-s5m.c
... ... @@ -832,6 +832,7 @@
832 832 static const struct platform_device_id s5m_rtc_id[] = {
833 833 { "s5m-rtc", S5M8767X },
834 834 { "s2mps14-rtc", S2MPS14X },
  835 + { },
835 836 };
836 837  
837 838 static struct platform_driver s5m_rtc_driver = {