Thread (10 messages) 10 messages, 4 authors, 2014-09-25
STALE4301d REVIEWED: 7 (5M)

[PATCH v2 1/2] gpio, bcm-kona, LLVMLinux: Remove use of __initconst

From: <hidden>
Date: 2014-09-23 22:55:26
Also in: linux-mmc, lkml
Subsystem: broadcom kona gpio driver, gpio subsystem, the rest · Maintainers: Ray Jui, Linus Walleij, Bartosz Golaszewski, Linus Torvalds

From: Behan Webster <redacted>

The __initconst is in the wrong place, and when moved to the correct place
it uncovers an error where the variable is used by non-init data structures.

Instead merely make them const and put the const in the right spot.

Signed-off-by: Behan Webster <redacted>
Reviewed-by: Mark Charlebois <redacted>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Matt Porter <redacted>
---
 drivers/gpio/gpio-bcm-kona.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c
index 3f6b33c..de0801e 100644
--- a/drivers/gpio/gpio-bcm-kona.c
+++ b/drivers/gpio/gpio-bcm-kona.c
@@ -496,7 +496,7 @@ static struct irq_chip bcm_gpio_irq_chip = {
 	.irq_release_resources = bcm_kona_gpio_irq_relres,
 };
 
-static struct __initconst of_device_id bcm_kona_gpio_of_match[] = {
+static struct of_device_id const bcm_kona_gpio_of_match[] = {
 	{ .compatible = "brcm,kona-gpio" },
 	{}
 };
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help