diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-11-12 16:54:08 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-11-12 16:54:08 -0500 |
commit | 8a6ff8a0a2bc51b29681aab093b349c9eb32acf5 (patch) | |
tree | 7ee7315a4aa9b33cba73cf46e59187157a00866a /drivers/usb/musb | |
parent | 65829ef5a0b9bdffa34b35479853d24e547cfde8 (diff) | |
parent | 75984df05d86956541795f01e62d7dc67bc522fd (diff) |
Merge tag 'for-3.8-at91_header_clean' of git://github.com/at91linux/linux-at91 into next/headers
From Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>:
arm: at91: mach header cleanup
This first patch serie start the cleanup of the header in mach
by moving all the platform data to include/linux/platform_data
and move the board header and drivers header next to them
* tag 'for-3.8-at91_header_clean' of git://github.com/at91linux/linux-at91:
arm: at91: move at91rm9200 rtc header in drivers/rtc
arm: at91: move reset controller header to arm/arm/mach-at91
arm: at91: move pit define to the driver
arm: at91: move at91_shdwc.h to arch/arm/mach-at91
arm: at91: move board header to arch/arm/mach-at91
arn: at91: move at91_tc.h to arch/arm/mach-at91
arm: at91 move at91_aic.h to arch/arm/mach-at91
arm: at91 move board.h to arch/arm/mach-at91
arm: at91: move platfarm_data to include/linux/platform_data/atmel.h
arm: at91: drop machine defconfig
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/musb_dsps.c | 8 |
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"); |