aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r--arch/arm/mach-omap2/devices.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index 342d69399ec7..142d9c616f1b 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -62,8 +62,7 @@ static int __init omap3_l3_init(void)
62 if (!oh) 62 if (!oh)
63 pr_err("could not look up %s\n", oh_name); 63 pr_err("could not look up %s\n", oh_name);
64 64
65 pdev = omap_device_build("omap_l3_smx", 0, oh, NULL, 0, 65 pdev = omap_device_build("omap_l3_smx", 0, oh, NULL, 0);
66 NULL, 0, 0);
67 66
68 WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name); 67 WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name);
69 68
@@ -97,8 +96,7 @@ static int __init omap4_l3_init(void)
97 pr_err("could not look up %s\n", oh_name); 96 pr_err("could not look up %s\n", oh_name);
98 } 97 }
99 98
100 pdev = omap_device_build_ss("omap_l3_noc", 0, oh, 3, NULL, 99 pdev = omap_device_build_ss("omap_l3_noc", 0, oh, 3, NULL, 0);
101 0, NULL, 0, 0);
102 100
103 WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name); 101 WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name);
104 102
@@ -317,7 +315,7 @@ int __init omap4_keyboard_init(struct omap4_keypad_platform_data
317 keypad_data = sdp4430_keypad_data; 315 keypad_data = sdp4430_keypad_data;
318 316
319 pdev = omap_device_build(name, id, oh, keypad_data, 317 pdev = omap_device_build(name, id, oh, keypad_data,
320 sizeof(struct omap4_keypad_platform_data), NULL, 0, 0); 318 sizeof(struct omap4_keypad_platform_data));
321 319
322 if (IS_ERR(pdev)) { 320 if (IS_ERR(pdev)) {
323 WARN(1, "Can't build omap_device for %s:%s.\n", 321 WARN(1, "Can't build omap_device for %s:%s.\n",
@@ -341,7 +339,7 @@ static inline void __init omap_init_mbox(void)
341 return; 339 return;
342 } 340 }
343 341
344 pdev = omap_device_build("omap-mailbox", -1, oh, NULL, 0, NULL, 0, 0); 342 pdev = omap_device_build("omap-mailbox", -1, oh, NULL, 0);
345 WARN(IS_ERR(pdev), "%s: could not build device, err %ld\n", 343 WARN(IS_ERR(pdev), "%s: could not build device, err %ld\n",
346 __func__, PTR_ERR(pdev)); 344 __func__, PTR_ERR(pdev));
347} 345}
@@ -381,7 +379,7 @@ static void __init omap_init_mcpdm(void)
381 return; 379 return;
382 } 380 }
383 381
384 pdev = omap_device_build("omap-mcpdm", -1, oh, NULL, 0, NULL, 0, 0); 382 pdev = omap_device_build("omap-mcpdm", -1, oh, NULL, 0);
385 WARN(IS_ERR(pdev), "Can't build omap_device for omap-mcpdm.\n"); 383 WARN(IS_ERR(pdev), "Can't build omap_device for omap-mcpdm.\n");
386} 384}
387#else 385#else
@@ -402,7 +400,7 @@ static void __init omap_init_dmic(void)
402 return; 400 return;
403 } 401 }
404 402
405 pdev = omap_device_build("omap-dmic", -1, oh, NULL, 0, NULL, 0, 0); 403 pdev = omap_device_build("omap-dmic", -1, oh, NULL, 0);
406 WARN(IS_ERR(pdev), "Can't build omap_device for omap-dmic.\n"); 404 WARN(IS_ERR(pdev), "Can't build omap_device for omap-dmic.\n");
407} 405}
408#else 406#else
@@ -428,8 +426,7 @@ static void __init omap_init_hdmi_audio(void)
428 return; 426 return;
429 } 427 }
430 428
431 pdev = omap_device_build("omap-hdmi-audio-dai", 429 pdev = omap_device_build("omap-hdmi-audio-dai", -1, oh, NULL, 0, 0);
432 -1, oh, NULL, 0, NULL, 0, 0);
433 WARN(IS_ERR(pdev), 430 WARN(IS_ERR(pdev),
434 "Can't build omap_device for omap-hdmi-audio-dai.\n"); 431 "Can't build omap_device for omap-hdmi-audio-dai.\n");
435 432
@@ -473,8 +470,7 @@ static int __init omap_mcspi_init(struct omap_hwmod *oh, void *unused)
473 } 470 }
474 471
475 spi_num++; 472 spi_num++;
476 pdev = omap_device_build(name, spi_num, oh, pdata, 473 pdev = omap_device_build(name, spi_num, oh, pdata, sizeof(*pdata));
477 sizeof(*pdata), NULL, 0, 0);
478 WARN(IS_ERR(pdev), "Can't build omap_device for %s:%s\n", 474 WARN(IS_ERR(pdev), "Can't build omap_device for %s:%s\n",
479 name, oh->name); 475 name, oh->name);
480 kfree(pdata); 476 kfree(pdata);
@@ -504,7 +500,7 @@ static void omap_init_rng(void)
504 if (!oh) 500 if (!oh)
505 return; 501 return;
506 502
507 pdev = omap_device_build("omap_rng", -1, oh, NULL, 0, NULL, 0, 0); 503 pdev = omap_device_build("omap_rng", -1, oh, NULL, 0);
508 WARN(IS_ERR(pdev), "Can't build omap_device for omap_rng\n"); 504 WARN(IS_ERR(pdev), "Can't build omap_device for omap_rng\n");
509} 505}
510 506
@@ -733,8 +729,7 @@ static void __init omap_init_ocp2scp(void)
733 729
734 pdata->dev_cnt = dev_cnt; 730 pdata->dev_cnt = dev_cnt;
735 731
736 pdev = omap_device_build(name, bus_id, oh, pdata, sizeof(*pdata), NULL, 732 pdev = omap_device_build(name, bus_id, oh, pdata, sizeof(*pdata));
737 0, false);
738 if (IS_ERR(pdev)) { 733 if (IS_ERR(pdev)) {
739 pr_err("Could not build omap_device for %s %s\n", 734 pr_err("Could not build omap_device for %s %s\n",
740 name, oh_name); 735 name, oh_name);