aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2012-11-09 17:58:01 -0500
committerTony Lindgren <tony@atomide.com>2012-11-09 17:58:01 -0500
commitedf8dde393f879fc2d8c22d4bc01ff8d37b80e1a (patch)
tree61425adc8b2059a9c12a3ce66ba7361fea1b0bb3 /drivers/usb/musb
parent6ba54ab4a49bbad736b0254aa6bdf0cb83013815 (diff)
parent3d70f8c617a436c7146ecb81df2265b4626dfe89 (diff)
Merge branch 'linus' into omap-for-v3.8/cleanup-headers-prepare-multiplatform-v3
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_dsps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
index a67af21c1460..aa34f22181c1 100644
--- a/drivers/usb/musb/musb_dsps.c
+++ b/drivers/usb/musb/musb_dsps.c
@@ -457,11 +457,11 @@ static int __devinit dsps_create_musb_pdev(struct dsps_glue *glue, u8 id)
457 struct platform_device *musb; 457 struct platform_device *musb;
458 struct resource *res; 458 struct resource *res;
459 struct resource resources[2]; 459 struct resource resources[2];
460 char res_name[10]; 460 char res_name[11];
461 int ret, musbid; 461 int ret, musbid;
462 462
463 /* get memory resource */ 463 /* get memory resource */
464 sprintf(res_name, "musb%d", id); 464 snprintf(res_name, sizeof(res_name), "musb%d", id);
465 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, res_name); 465 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, res_name);
466 if (!res) { 466 if (!res) {
467 dev_err(dev, "%s get mem resource failed\n", res_name); 467 dev_err(dev, "%s get mem resource failed\n", res_name);
@@ -472,7 +472,7 @@ static int __devinit dsps_create_musb_pdev(struct dsps_glue *glue, u8 id)
472 resources[0] = *res; 472 resources[0] = *res;
473 473
474 /* get irq resource */ 474 /* get irq resource */
475 sprintf(res_name, "musb%d-irq", id); 475 snprintf(res_name, sizeof(res_name), "musb%d-irq", id);
476 res = platform_get_resource_byname(pdev, IORESOURCE_IRQ, res_name); 476 res = platform_get_resource_byname(pdev, IORESOURCE_IRQ, res_name);
477 if (!res) { 477 if (!res) {
478 dev_err(dev, "%s get irq resource failed\n", res_name); 478 dev_err(dev, "%s get irq resource failed\n", res_name);
@@ -529,7 +529,7 @@ static int __devinit dsps_create_musb_pdev(struct dsps_glue *glue, u8 id)
529 529
530 of_property_read_u32(np, "num-eps", (u32 *)&config->num_eps); 530 of_property_read_u32(np, "num-eps", (u32 *)&config->num_eps);
531 of_property_read_u32(np, "ram-bits", (u32 *)&config->ram_bits); 531 of_property_read_u32(np, "ram-bits", (u32 *)&config->ram_bits);
532 sprintf(res_name, "port%d-mode", id); 532 snprintf(res_name, sizeof(res_name), "port%d-mode", id);
533 of_property_read_u32(np, res_name, (u32 *)&pdata->mode); 533 of_property_read_u32(np, res_name, (u32 *)&pdata->mode);
534 of_property_read_u32(np, "power", (u32 *)&pdata->power); 534 of_property_read_u32(np, "power", (u32 *)&pdata->power);
535 config->multipoint = of_property_read_bool(np, "multipoint"); 535 config->multipoint = of_property_read_bool(np, "multipoint");