| .. | .. |
|---|
| 475 | 475 | static void clear_all_buffer(struct r8a66597 *r8a66597, |
|---|
| 476 | 476 | struct r8a66597_pipe *pipe) |
|---|
| 477 | 477 | { |
|---|
| 478 | | - u16 tmp; |
|---|
| 479 | | - |
|---|
| 480 | 478 | if (!pipe || pipe->info.pipenum == 0) |
|---|
| 481 | 479 | return; |
|---|
| 482 | 480 | |
|---|
| 483 | 481 | pipe_stop(r8a66597, pipe); |
|---|
| 484 | 482 | r8a66597_bset(r8a66597, ACLRM, pipe->pipectr); |
|---|
| 485 | | - tmp = r8a66597_read(r8a66597, pipe->pipectr); |
|---|
| 486 | | - tmp = r8a66597_read(r8a66597, pipe->pipectr); |
|---|
| 487 | | - tmp = r8a66597_read(r8a66597, pipe->pipectr); |
|---|
| 483 | + r8a66597_read(r8a66597, pipe->pipectr); |
|---|
| 484 | + r8a66597_read(r8a66597, pipe->pipectr); |
|---|
| 485 | + r8a66597_read(r8a66597, pipe->pipectr); |
|---|
| 488 | 486 | r8a66597_bclr(r8a66597, ACLRM, pipe->pipectr); |
|---|
| 489 | 487 | } |
|---|
| 490 | 488 | |
|---|
| .. | .. |
|---|
| 2410 | 2408 | |
|---|
| 2411 | 2409 | if (usb_disabled()) |
|---|
| 2412 | 2410 | return -ENODEV; |
|---|
| 2413 | | - |
|---|
| 2414 | | - if (pdev->dev.dma_mask) { |
|---|
| 2415 | | - ret = -EINVAL; |
|---|
| 2416 | | - dev_err(&pdev->dev, "dma not supported\n"); |
|---|
| 2417 | | - goto clean_up; |
|---|
| 2418 | | - } |
|---|
| 2419 | 2411 | |
|---|
| 2420 | 2412 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
|---|
| 2421 | 2413 | if (!res) { |
|---|