aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-11-02 11:39:46 -0400
committerArnd Bergmann <arnd@arndb.de>2017-11-02 11:39:46 -0400
commitda18392fd04d9579e1c11d8aefa80626a1763959 (patch)
treec57c163a21b28b98ecb976dcb630a1b56ea3495f
parent707ad7efbd0474bace6a63f41ab17b10dedbe818 (diff)
parentd9ecbef39438391dcee511e17b6f65a970b28639 (diff)
Merge tag 'omap-for-v4.15/coccinelle-signed' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/soc
Pull "omap coccinelle warning fixes for v4.15 merge window" from Tony Lindgren: Few coccinelle robot clean-up patches for careless human coding issues for v4.15 merge window sent by their human operatorrrrrs. * tag 'omap-for-v4.15/coccinelle-signed' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: OMAP3: Delete an unnecessary variable initialisation in omap3xxx_hwmod_init() ARM: OMAP3: Use common error handling code in omap3xxx_hwmod_init() ARM: omap1: add const and initconst to omap_lcd_config
-rw-r--r--arch/arm/mach-omap1/board-ams-delta.c2
-rw-r--r--arch/arm/mach-omap1/board-fsample.c2
-rw-r--r--arch/arm/mach-omap1/board-h2.c2
-rw-r--r--arch/arm/mach-omap1/board-h3.c2
-rw-r--r--arch/arm/mach-omap1/board-htcherald.c2
-rw-r--r--arch/arm/mach-omap1/board-innovator.c4
-rw-r--r--arch/arm/mach-omap1/board-nokia770.c2
-rw-r--r--arch/arm/mach-omap1/board-osk.c2
-rw-r--r--arch/arm/mach-omap1/board-palmte.c2
-rw-r--r--arch/arm/mach-omap1/board-palmtt.c2
-rw-r--r--arch/arm/mach-omap1/board-palmz71.c2
-rw-r--r--arch/arm/mach-omap1/board-perseus2.c2
-rw-r--r--arch/arm/mach-omap1/board-sx1.c2
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_3xxx_data.c18
14 files changed, 23 insertions, 23 deletions
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c
index 6cbc69c92913..52e8e53ca154 100644
--- a/arch/arm/mach-omap1/board-ams-delta.c
+++ b/arch/arm/mach-omap1/board-ams-delta.c
@@ -156,7 +156,7 @@ static struct map_desc ams_delta_io_desc[] __initdata = {
156 } 156 }
157}; 157};
158 158
159static struct omap_lcd_config ams_delta_lcd_config __initdata = { 159static const struct omap_lcd_config ams_delta_lcd_config __initconst = {
160 .ctrl_name = "internal", 160 .ctrl_name = "internal",
161}; 161};
162 162
diff --git a/arch/arm/mach-omap1/board-fsample.c b/arch/arm/mach-omap1/board-fsample.c
index b93ad58b0a63..69bd601feb83 100644
--- a/arch/arm/mach-omap1/board-fsample.c
+++ b/arch/arm/mach-omap1/board-fsample.c
@@ -266,7 +266,7 @@ static struct platform_device *devices[] __initdata = {
266 &kp_device, 266 &kp_device,
267}; 267};
268 268
269static struct omap_lcd_config fsample_lcd_config = { 269static const struct omap_lcd_config fsample_lcd_config = {
270 .ctrl_name = "internal", 270 .ctrl_name = "internal",
271}; 271};
272 272
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c
index 6a38c7603064..ab51f8554697 100644
--- a/arch/arm/mach-omap1/board-h2.c
+++ b/arch/arm/mach-omap1/board-h2.c
@@ -357,7 +357,7 @@ static struct omap_usb_config h2_usb_config __initdata = {
357 .pins[1] = 3, 357 .pins[1] = 3,
358}; 358};
359 359
360static struct omap_lcd_config h2_lcd_config __initdata = { 360static const struct omap_lcd_config h2_lcd_config __initconst = {
361 .ctrl_name = "internal", 361 .ctrl_name = "internal",
362}; 362};
363 363
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c
index 302260583e8e..ad339f51cc78 100644
--- a/arch/arm/mach-omap1/board-h3.c
+++ b/arch/arm/mach-omap1/board-h3.c
@@ -376,7 +376,7 @@ static struct omap_usb_config h3_usb_config __initdata = {
376 .pins[1] = 3, 376 .pins[1] = 3,
377}; 377};
378 378
379static struct omap_lcd_config h3_lcd_config __initdata = { 379static const struct omap_lcd_config h3_lcd_config __initconst = {
380 .ctrl_name = "internal", 380 .ctrl_name = "internal",
381}; 381};
382 382
diff --git a/arch/arm/mach-omap1/board-htcherald.c b/arch/arm/mach-omap1/board-htcherald.c
index e424df901dbd..67d46690a56e 100644
--- a/arch/arm/mach-omap1/board-htcherald.c
+++ b/arch/arm/mach-omap1/board-htcherald.c
@@ -391,7 +391,7 @@ static struct omap_usb_config htcherald_usb_config __initdata = {
391}; 391};
392 392
393/* LCD Device resources */ 393/* LCD Device resources */
394static struct omap_lcd_config htcherald_lcd_config __initdata = { 394static const struct omap_lcd_config htcherald_lcd_config __initconst = {
395 .ctrl_name = "internal", 395 .ctrl_name = "internal",
396}; 396};
397 397
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c
index 67e188271643..8c286a29f24b 100644
--- a/arch/arm/mach-omap1/board-innovator.c
+++ b/arch/arm/mach-omap1/board-innovator.c
@@ -302,7 +302,7 @@ static struct omap_usb_config innovator1510_usb_config __initdata = {
302 .pins[0] = 2, 302 .pins[0] = 2,
303}; 303};
304 304
305static struct omap_lcd_config innovator1510_lcd_config __initdata = { 305static const struct omap_lcd_config innovator1510_lcd_config __initconst = {
306 .ctrl_name = "internal", 306 .ctrl_name = "internal",
307}; 307};
308#endif 308#endif
@@ -323,7 +323,7 @@ static struct omap_usb_config h2_usb_config __initdata = {
323 .pins[1] = 3, 323 .pins[1] = 3,
324}; 324};
325 325
326static struct omap_lcd_config innovator1610_lcd_config __initdata = { 326static const struct omap_lcd_config innovator1610_lcd_config __initconst = {
327 .ctrl_name = "internal", 327 .ctrl_name = "internal",
328}; 328};
329#endif 329#endif
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c
index 06243c0b12d2..eb41db78cd47 100644
--- a/arch/arm/mach-omap1/board-nokia770.c
+++ b/arch/arm/mach-omap1/board-nokia770.c
@@ -103,7 +103,7 @@ static struct mipid_platform_data nokia770_mipid_platform_data = {
103 .shutdown = mipid_shutdown, 103 .shutdown = mipid_shutdown,
104}; 104};
105 105
106static struct omap_lcd_config nokia770_lcd_config __initdata = { 106static const struct omap_lcd_config nokia770_lcd_config __initconst = {
107 .ctrl_name = "hwa742", 107 .ctrl_name = "hwa742",
108}; 108};
109 109
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c
index d579f4e04137..c66372ed29e2 100644
--- a/arch/arm/mach-omap1/board-osk.c
+++ b/arch/arm/mach-omap1/board-osk.c
@@ -295,7 +295,7 @@ static struct omap_usb_config osk_usb_config __initdata = {
295}; 295};
296 296
297#ifdef CONFIG_OMAP_OSK_MISTRAL 297#ifdef CONFIG_OMAP_OSK_MISTRAL
298static struct omap_lcd_config osk_lcd_config __initdata = { 298static const struct omap_lcd_config osk_lcd_config __initconst = {
299 .ctrl_name = "internal", 299 .ctrl_name = "internal",
300}; 300};
301#endif 301#endif
diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c
index e5288cda1a6a..2dc5deb19803 100644
--- a/arch/arm/mach-omap1/board-palmte.c
+++ b/arch/arm/mach-omap1/board-palmte.c
@@ -178,7 +178,7 @@ static struct omap_usb_config palmte_usb_config __initdata = {
178 .pins[0] = 2, 178 .pins[0] = 2,
179}; 179};
180 180
181static struct omap_lcd_config palmte_lcd_config __initdata = { 181static const struct omap_lcd_config palmte_lcd_config __initconst = {
182 .ctrl_name = "internal", 182 .ctrl_name = "internal",
183}; 183};
184 184
diff --git a/arch/arm/mach-omap1/board-palmtt.c b/arch/arm/mach-omap1/board-palmtt.c
index d672495f7441..a23327682df0 100644
--- a/arch/arm/mach-omap1/board-palmtt.c
+++ b/arch/arm/mach-omap1/board-palmtt.c
@@ -241,7 +241,7 @@ static struct omap_usb_config palmtt_usb_config __initdata = {
241 .pins[0] = 2, 241 .pins[0] = 2,
242}; 242};
243 243
244static struct omap_lcd_config palmtt_lcd_config __initdata = { 244static const struct omap_lcd_config palmtt_lcd_config __initconst = {
245 .ctrl_name = "internal", 245 .ctrl_name = "internal",
246}; 246};
247 247
diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c
index aaf741b0aff6..30b07096197b 100644
--- a/arch/arm/mach-omap1/board-palmz71.c
+++ b/arch/arm/mach-omap1/board-palmz71.c
@@ -206,7 +206,7 @@ static struct omap_usb_config palmz71_usb_config __initdata = {
206 .pins[0] = 2, 206 .pins[0] = 2,
207}; 207};
208 208
209static struct omap_lcd_config palmz71_lcd_config __initdata = { 209static const struct omap_lcd_config palmz71_lcd_config __initconst = {
210 .ctrl_name = "internal", 210 .ctrl_name = "internal",
211}; 211};
212 212
diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c
index e994a78bdd09..b4951eb82898 100644
--- a/arch/arm/mach-omap1/board-perseus2.c
+++ b/arch/arm/mach-omap1/board-perseus2.c
@@ -225,7 +225,7 @@ static struct platform_device *devices[] __initdata = {
225 &kp_device, 225 &kp_device,
226}; 226};
227 227
228static struct omap_lcd_config perseus2_lcd_config __initdata = { 228static const struct omap_lcd_config perseus2_lcd_config __initconst = {
229 .ctrl_name = "internal", 229 .ctrl_name = "internal",
230}; 230};
231 231
diff --git a/arch/arm/mach-omap1/board-sx1.c b/arch/arm/mach-omap1/board-sx1.c
index 6c482254b37c..ec27bb3e370f 100644
--- a/arch/arm/mach-omap1/board-sx1.c
+++ b/arch/arm/mach-omap1/board-sx1.c
@@ -297,7 +297,7 @@ static struct omap_usb_config sx1_usb_config __initdata = {
297 297
298/*----------- LCD -------------------------*/ 298/*----------- LCD -------------------------*/
299 299
300static struct omap_lcd_config sx1_lcd_config __initdata = { 300static const struct omap_lcd_config sx1_lcd_config __initconst = {
301 .ctrl_name = "internal", 301 .ctrl_name = "internal",
302}; 302};
303 303
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
index 9cfba4125d63..d2106ae4410a 100644
--- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
@@ -3107,7 +3107,7 @@ int __init omap3xxx_hwmod_init(void)
3107 int r; 3107 int r;
3108 struct omap_hwmod_ocp_if **h = NULL, **h_gp = NULL, **h_sham = NULL; 3108 struct omap_hwmod_ocp_if **h = NULL, **h_gp = NULL, **h_sham = NULL;
3109 struct omap_hwmod_ocp_if **h_aes = NULL; 3109 struct omap_hwmod_ocp_if **h_aes = NULL;
3110 struct device_node *bus = NULL; 3110 struct device_node *bus;
3111 unsigned int rev; 3111 unsigned int rev;
3112 3112
3113 omap_hwmod_init(); 3113 omap_hwmod_init();
@@ -3167,18 +3167,14 @@ int __init omap3xxx_hwmod_init(void)
3167 3167
3168 if (h_sham && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "sham")) { 3168 if (h_sham && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "sham")) {
3169 r = omap_hwmod_register_links(h_sham); 3169 r = omap_hwmod_register_links(h_sham);
3170 if (r < 0) { 3170 if (r < 0)
3171 of_node_put(bus); 3171 goto put_node;
3172 return r;
3173 }
3174 } 3172 }
3175 3173
3176 if (h_aes && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "aes")) { 3174 if (h_aes && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "aes")) {
3177 r = omap_hwmod_register_links(h_aes); 3175 r = omap_hwmod_register_links(h_aes);
3178 if (r < 0) { 3176 if (r < 0)
3179 of_node_put(bus); 3177 goto put_node;
3180 return r;
3181 }
3182 } 3178 }
3183 of_node_put(bus); 3179 of_node_put(bus);
3184 3180
@@ -3229,4 +3225,8 @@ int __init omap3xxx_hwmod_init(void)
3229 r = omap_hwmod_register_links(omap3xxx_dss_hwmod_ocp_ifs); 3225 r = omap_hwmod_register_links(omap3xxx_dss_hwmod_ocp_ifs);
3230 3226
3231 return r; 3227 return r;
3228
3229put_node:
3230 of_node_put(bus);
3231 return r;
3232} 3232}