]> xenbits.xensource.com Git - xen.git/commitdiff
xen: driver/char: fix const declaration of DT compatible list
authorJulien Grall <julien.grall@linaro.org>
Tue, 24 Dec 2013 11:28:47 +0000 (11:28 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 7 Jan 2014 13:31:20 +0000 (13:31 +0000)
The data type for DT compatible list should be:
    const char * const[]  __initconst

Fix every serial drivers which support device tree.

Spotted-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/drivers/char/exynos4210-uart.c
xen/drivers/char/ns16550.c
xen/drivers/char/omap-uart.c
xen/drivers/char/pl011.c

index 0a2ac17037e93198e98969ec6aa4acaf9dc28209..061957560cfd2170d7f685a31811f93fb55ba1bd 100644 (file)
@@ -361,7 +361,7 @@ static int __init exynos4210_uart_init(struct dt_device_node *dev,
     return 0;
 }
 
-static const char const *exynos4210_dt_compat[] __initdata =
+static const char * const exynos4210_dt_compat[] __initconst =
 {
     "samsung,exynos4210-uart",
     NULL
index a947c68c203f99164186cbbbce7cbc7325fea2f3..e7cb0baa5036f26b9502ef97c9e97e9bf048ffb3 100644 (file)
@@ -814,7 +814,7 @@ static int __init ns16550_uart_dt_init(struct dt_device_node *dev,
     return 0;
 }
 
-static const char const *ns16550_dt_compat[] __initconst =
+static const char * const ns16550_dt_compat[] __initconst =
 {
     "ns16550",
     "ns16550a",
index 321e636e86d63118860e512b7d3af2b72b0ffade..c1580ef294b91f51cc72683b9a5a1099a71872c8 100644 (file)
@@ -354,7 +354,7 @@ static int __init omap_uart_init(struct dt_device_node *dev,
     return 0;
 }
 
-static const char * const omap_uart_dt_compat[] __initdata =
+static const char * const omap_uart_dt_compat[] __initconst =
 {
     "ti,omap4-uart",
     NULL
index 613b9ebfd7edeba1fd0fb9003a4b8e94696e04a5..fd82511bf98f2cc8c2c8751b2a8211cac2d92e84 100644 (file)
@@ -277,7 +277,7 @@ static int __init pl011_uart_init(struct dt_device_node *dev,
     return 0;
 }
 
-static const char const *pl011_dt_compat[] __initdata =
+static const char * const pl011_dt_compat[] __initconst =
 {
     "arm,pl011",
     NULL