diff options
author | Felipe Balbi <balbi@ti.com> | 2011-07-04 04:12:32 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-07-05 09:41:12 -0400 |
commit | b9af9ea45a8dc1c3e7a98319bac90199807cc258 (patch) | |
tree | eadb0e1db5991f952fdda58f8010cbe0511f28e8 /drivers/usb/gadget | |
parent | 4dbafd3dce8593c8ec1a6b78239f59645b4dde8f (diff) |
usb: gadget: langwell_udc: fix compile warnings
This patch fixes the following compile warnings:
drivers/usb/gadget/langwell_udc.c: In function ‘queue_dtd’:
drivers/usb/gadget/langwell_udc.c:596:2: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
drivers/usb/gadget/langwell_udc.c: In function ‘langwell_udc_probe’:
drivers/usb/gadget/langwell_udc.c:3274:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
drivers/usb/gadget/langwell_udc.c:3289:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
drivers/usb/gadget/langwell_udc.c: In function ‘langwell_udc_resume’:
drivers/usb/gadget/langwell_udc.c:3473:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
drivers/usb/gadget/langwell_udc.c:3487:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat]
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/langwell_udc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/usb/gadget/langwell_udc.c b/drivers/usb/gadget/langwell_udc.c index d8403ae3c2b3..a06e2c27b435 100644 --- a/drivers/usb/gadget/langwell_udc.c +++ b/drivers/usb/gadget/langwell_udc.c | |||
@@ -593,8 +593,8 @@ static int queue_dtd(struct langwell_ep *ep, struct langwell_request *req) | |||
593 | /* ep0 */ | 593 | /* ep0 */ |
594 | dev_vdbg(&dev->pdev->dev, "%s-%s\n", ep->name, DIR_STRING(ep)); | 594 | dev_vdbg(&dev->pdev->dev, "%s-%s\n", ep->name, DIR_STRING(ep)); |
595 | 595 | ||
596 | dev_vdbg(&dev->pdev->dev, "ep_dqh[%d] addr: 0x%08x\n", | 596 | dev_vdbg(&dev->pdev->dev, "ep_dqh[%d] addr: 0x%p\n", |
597 | i, (u32)&(dev->ep_dqh[i])); | 597 | i, &(dev->ep_dqh[i])); |
598 | 598 | ||
599 | bit_mask = is_in(ep) ? | 599 | bit_mask = is_in(ep) ? |
600 | (1 << (ep->ep_num + 16)) : (1 << (ep->ep_num)); | 600 | (1 << (ep->ep_num + 16)) : (1 << (ep->ep_num)); |
@@ -3271,7 +3271,7 @@ static int langwell_udc_probe(struct pci_dev *pdev, | |||
3271 | 3271 | ||
3272 | /* allocate device dQH memory */ | 3272 | /* allocate device dQH memory */ |
3273 | size = dev->ep_max * sizeof(struct langwell_dqh); | 3273 | size = dev->ep_max * sizeof(struct langwell_dqh); |
3274 | dev_vdbg(&dev->pdev->dev, "orig size = %d\n", size); | 3274 | dev_vdbg(&dev->pdev->dev, "orig size = %zd\n", size); |
3275 | if (size < DQH_ALIGNMENT) | 3275 | if (size < DQH_ALIGNMENT) |
3276 | size = DQH_ALIGNMENT; | 3276 | size = DQH_ALIGNMENT; |
3277 | else if ((size % DQH_ALIGNMENT) != 0) { | 3277 | else if ((size % DQH_ALIGNMENT) != 0) { |
@@ -3286,7 +3286,7 @@ static int langwell_udc_probe(struct pci_dev *pdev, | |||
3286 | goto error; | 3286 | goto error; |
3287 | } | 3287 | } |
3288 | dev->ep_dqh_size = size; | 3288 | dev->ep_dqh_size = size; |
3289 | dev_vdbg(&dev->pdev->dev, "ep_dqh_size = %d\n", dev->ep_dqh_size); | 3289 | dev_vdbg(&dev->pdev->dev, "ep_dqh_size = %zd\n", dev->ep_dqh_size); |
3290 | 3290 | ||
3291 | /* initialize ep0 status request structure */ | 3291 | /* initialize ep0 status request structure */ |
3292 | dev->status_req = kzalloc(sizeof(struct langwell_request), GFP_KERNEL); | 3292 | dev->status_req = kzalloc(sizeof(struct langwell_request), GFP_KERNEL); |
@@ -3470,7 +3470,7 @@ static int langwell_udc_resume(struct pci_dev *pdev) | |||
3470 | 3470 | ||
3471 | /* allocate device dQH memory */ | 3471 | /* allocate device dQH memory */ |
3472 | size = dev->ep_max * sizeof(struct langwell_dqh); | 3472 | size = dev->ep_max * sizeof(struct langwell_dqh); |
3473 | dev_vdbg(&dev->pdev->dev, "orig size = %d\n", size); | 3473 | dev_vdbg(&dev->pdev->dev, "orig size = %zd\n", size); |
3474 | if (size < DQH_ALIGNMENT) | 3474 | if (size < DQH_ALIGNMENT) |
3475 | size = DQH_ALIGNMENT; | 3475 | size = DQH_ALIGNMENT; |
3476 | else if ((size % DQH_ALIGNMENT) != 0) { | 3476 | else if ((size % DQH_ALIGNMENT) != 0) { |
@@ -3484,7 +3484,7 @@ static int langwell_udc_resume(struct pci_dev *pdev) | |||
3484 | return -ENOMEM; | 3484 | return -ENOMEM; |
3485 | } | 3485 | } |
3486 | dev->ep_dqh_size = size; | 3486 | dev->ep_dqh_size = size; |
3487 | dev_vdbg(&dev->pdev->dev, "ep_dqh_size = %d\n", dev->ep_dqh_size); | 3487 | dev_vdbg(&dev->pdev->dev, "ep_dqh_size = %zd\n", dev->ep_dqh_size); |
3488 | 3488 | ||
3489 | /* create dTD dma_pool resource */ | 3489 | /* create dTD dma_pool resource */ |
3490 | dev->dtd_pool = dma_pool_create("langwell_dtd", | 3490 | dev->dtd_pool = dma_pool_create("langwell_dtd", |