CSR: add missing sentinels to of_device_id tables
Subsystems (2)
PATCH 1/1 CSR: add missing sentinels to of_device_id tables
The of_device_id tables used for matching should be terminated with empty sentinel values.
--- arch/arm/mach-prima2/clock.c | 1 + arch/arm/mach-prima2/irq.c | 1 + arch/arm/mach-prima2/rstc.c | 1 + arch/arm/mach-prima2/timer.c | 1 + 4 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-prima2/clock.c +1 -0
@@ -481,6 +481,7 @@ static void __init sirfsoc_clk_init(void)static struct of_device_id clkc_ids[] = { { .compatible ="sirf,prima2-clkc" }, + {}, };void __init sirfsoc_of_clk_init (void )
arch/arm/mach-prima2/irq.c +1 -0
@@ -51,6 +51,7 @@ static __init void sirfsoc_irq_init(void)static struct of_device_id intc_ids[] = { { .compatible ="sirf,prima2-intc" }, + {}, };void __init sirfsoc_of_irq_init (void )
arch/arm/mach-prima2/rstc.c +1 -0
@@ -19,6 +19,7 @@ static DEFINE_MUTEX(rstc_lock);static struct of_device_id rstc_ids[] = { { .compatible ="sirf,prima2-rstc" }, + {}, };static int __init sirfsoc_of_rstc_init (void )
arch/arm/mach-prima2/timer.c +1 -0
@@ -190,6 +190,7 @@ static void __init sirfsoc_timer_init(void)static struct of_device_id timer_ids[] = { { .compatible ="sirf,prima2-tick" }, + {}, };static void __init sirfsoc_of_timer_map (void )
Signature · 1 line
1.7.4.1
PATCH 1/1 CSR: add missing sentinels to of_device_id tables
Hi,
Quoted 17 lines · Jamie Iles
The
of_device_idtables used for matching should be terminated with empty sentinel values.Cc Barry Song <[email protected]>Signed-off-by Jamie Iles <[email protected]>--- arch/arm/mach-prima2/clock.c | 1 + arch/arm/mach-prima2/irq.c | 1 + arch/arm/mach-prima2/rstc.c | 1 + arch/arm/mach-prima2/timer.c | 1 + 4 files changed, 4 insertions(+), 0 deletions(-)arch/arm/mach-prima2/clock.c +0
-0
arch/arm/mach-prima2/clock.c static void __init sirfsoc_clk_init(void) · line 484
Quoted 4 lines
arch/arm/mach-prima2/clock.c +1
-0@@ -481,6 +481,7 @@ static void __init sirfsoc_clk_init(void)static struct of_device_id clkc_ids[] = { { .compatible ="sirf,prima2-clkc" }, + {},
I would add a comment like '/* end of list sentinel */' inside the '{}' to make it crystal clear that the empty braces are intentional. I also would omit the comma since it would be an error adding more entries after this one.
Lothar Wa?mann
Signature · 9 lines
___________________________________________________________ Ka-Ro electronics GmbH | Pascalstra?e 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10 Gesch?ftsf?hrer: Matthias Kaussen Handelsregistereintrag: Amtsgericht Aachen, HRB 4996 www.karo-electronics.de | info at karo-electronics.de ___________________________________________________________
PATCH 1/1 CSR: add missing sentinels to of_device_id tables
Quoted 21 lines · Lothar Wa?mann
Hi,
Quoted 18 lines · Jamie Iles
The
of_device_idtables used for matching should be terminated with empty sentinel values.Cc Barry Song <[email protected]>Signed-off-by Jamie Iles <[email protected]>--- arch/arm/mach-prima2/clock.c | 1 + arch/arm/mach-prima2/irq.c | 1 + arch/arm/mach-prima2/rstc.c | 1 + arch/arm/mach-prima2/timer.c | 1 + 4 files changed, 4 insertions(+), 0 deletions(-)arch/arm/mach-prima2/clock.c +0
-0@@ -481,6 +481,7 @@ static void __init sirfsoc_clk_init(void)
Quoted 7 lines
arch/arm/mach-prima2/clock.c static void __init sirfsoc_clk_init(void) · line 484
Quoted 3 lines
arch/arm/mach-prima2/clock.c +1
-0static struct of_device_id clkc_ids[] = { { .compatible ="sirf,prima2-clkc" }, + {},I would add a comment like '/* end of list sentinel */' inside the '{}' to make it crystal clear that the empty braces are intentional. I also would omit the comma since it would be an error adding more entries after this one.
OK. Revised patch below.
Thanks Lothar!
8<----
Date: Mon, 1 Aug 2011 21:09:36 +0100
Subject: [PATCH] CSR: add missing sentinels to of_device_id tables
The of_device_id tables used for matching should be terminated with empty sentinel values.
--- arch/arm/mach-prima2/clock.c | 1 + arch/arm/mach-prima2/irq.c | 1 + arch/arm/mach-prima2/rstc.c | 1 + arch/arm/mach-prima2/timer.c | 1 + 4 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-prima2/clock.c +1 -0
@@ -481,6 +481,7 @@ static void __init sirfsoc_clk_init(void)static struct of_device_id clkc_ids[] = { { .compatible ="sirf,prima2-clkc" }, + {/* Sentinel */ } };void __init sirfsoc_of_clk_init (void )
arch/arm/mach-prima2/irq.c +1 -0
@@ -51,6 +51,7 @@ static __init void sirfsoc_irq_init(void)static struct of_device_id intc_ids[] = { { .compatible ="sirf,prima2-intc" }, + {/* Sentinel */ } };void __init sirfsoc_of_irq_init (void )
arch/arm/mach-prima2/rstc.c +1 -0
@@ -19,6 +19,7 @@ static DEFINE_MUTEX(rstc_lock);static struct of_device_id rstc_ids[] = { { .compatible ="sirf,prima2-rstc" }, + {/* Sentinel */ } };static int __init sirfsoc_of_rstc_init (void )
arch/arm/mach-prima2/timer.c +1 -0
@@ -190,6 +190,7 @@ static void __init sirfsoc_timer_init(void)static struct of_device_id timer_ids[] = { { .compatible ="sirf,prima2-tick" }, + {/* Sentinel */ } };static void __init sirfsoc_of_timer_map (void )
Signature · 1 line
1.7.4.1
PATCH 1/1 CSR: add missing sentinels to of_device_id tables
Hi Jamie,
2011/8/2 Jamie Iles <[email protected]>:
Quoted 9 lines · Lothar Wa?mann
Quoted 8 lines
Hi,
Quoted 5 lines · Jamie Iles
The
of_device_idtables used for matching should be terminated with empty sentinel values.Cc Barry Song <[email protected]>Signed-off-by Jamie Iles <[email protected]>
fine with me, i'll merge this. thanks!
Quoted 94 lines
Quoted 13 lines
Quoted 13 lines
---
?arch/arm/mach-prima2/clock.c | ? ?1 + ?arch/arm/mach-prima2/irq.c ? | ? ?1 + ?arch/arm/mach-prima2/rstc.c ?| ? ?1 + ?arch/arm/mach-prima2/timer.c | ? ?1 +?4 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-prima2/clock.c +0
-0@@ -481,6 +481,7 @@ static void __init sirfsoc_clk_init(void)Quoted 7 lines
arch/arm/mach-prima2/clock.c static void __init sirfsoc_clk_init(void) · line 484
Quoted 3 lines
arch/arm/mach-prima2/clock.c +1
-0?static struct of_device_id clkc_ids[] = { ? ? { .compatible = "sirf,prima2-clkc" }, + ? {},I would add a comment like '/* end of list sentinel */' inside the '{}' to make it crystal clear that the empty braces are intentional. I also would omit the comma since it would be an error adding more entries after this one.
OK. ?Revised patch below.
Thanks Lothar!
8<----
Date: Mon, 1 Aug 2011 21:09:36 +0100
Subject: [PATCH] CSR: add missing sentinels toof_device_idtablesThe
of_device_idtables used for matching should be terminated with empty sentinel values.Cc Barry Song <[email protected]>Signed-off-by Jamie Iles <[email protected]>---
?arch/arm/mach-prima2/clock.c | ? ?1 + ?arch/arm/mach-prima2/irq.c ? | ? ?1 + ?arch/arm/mach-prima2/rstc.c ?| ? ?1 + ?arch/arm/mach-prima2/timer.c | ? ?1 +?4 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-prima2/clock.c +1
-0@@ -481,6 +481,7 @@ static void __init sirfsoc_clk_init(void) ?static struct of_device_id clkc_ids[] = { ? ? ? ?{ .compatible = "sirf,prima2-clkc" }, + ? ? ? { /* Sentinel */ } ?}; ?void __init sirfsoc_of_clk_init(void)arch/arm/mach-prima2/irq.c +1
-0@@ -51,6 +51,7 @@ static __init void sirfsoc_irq_init(void) ?static struct of_device_id intc_ids[] ?= { ? ? ? ?{ .compatible = "sirf,prima2-intc" }, + ? ? ? { /* Sentinel */ } ?}; ?void __init sirfsoc_of_irq_init(void)arch/arm/mach-prima2/rstc.c +1
-0@@ -19,6 +19,7 @@ static DEFINE_MUTEX(rstc_lock); ?static struct of_device_id rstc_ids[] ?= { ? ? ? ?{ .compatible = "sirf,prima2-rstc" }, + ? ? ? { /* Sentinel */ } ?}; ?static int __init sirfsoc_of_rstc_init(void)arch/arm/mach-prima2/timer.c +1
-1@@ -190,6 +190,7 @@ static void __init sirfsoc_timer_init(void) ?static struct of_device_id timer_ids[] = { ? ? ? ?{ .compatible = "sirf,prima2-tick" }, + ? ? ? { /* Sentinel */ } ?}; ?static void __init sirfsoc_of_timer_map(void) --1.7.4.1
Quoted 5 lines
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
-barry