diff options
Diffstat (limited to 'drivers/usb/gadget/omap_udc.c')
-rw-r--r-- | drivers/usb/gadget/omap_udc.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index fbea51448909..0a64504c2545 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #undef DEBUG | 22 | #undef DEBUG |
23 | #undef VERBOSE | 23 | #undef VERBOSE |
24 | 24 | ||
25 | #include <linux/config.h> | ||
26 | #include <linux/module.h> | 25 | #include <linux/module.h> |
27 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
28 | #include <linux/ioport.h> | 27 | #include <linux/ioport.h> |
@@ -41,7 +40,7 @@ | |||
41 | #include <linux/platform_device.h> | 40 | #include <linux/platform_device.h> |
42 | #include <linux/usb_ch9.h> | 41 | #include <linux/usb_ch9.h> |
43 | #include <linux/usb_gadget.h> | 42 | #include <linux/usb_gadget.h> |
44 | #include <linux/usb_otg.h> | 43 | #include <linux/usb/otg.h> |
45 | #include <linux/dma-mapping.h> | 44 | #include <linux/dma-mapping.h> |
46 | 45 | ||
47 | #include <asm/byteorder.h> | 46 | #include <asm/byteorder.h> |
@@ -773,7 +772,7 @@ static void dma_error(int lch, u16 ch_status, void *data) | |||
773 | struct omap_ep *ep = data; | 772 | struct omap_ep *ep = data; |
774 | 773 | ||
775 | /* if ch_status & OMAP_DMA_DROP_IRQ ... */ | 774 | /* if ch_status & OMAP_DMA_DROP_IRQ ... */ |
776 | /* if ch_status & OMAP_DMA_TOUT_IRQ ... */ | 775 | /* if ch_status & OMAP1_DMA_TOUT_IRQ ... */ |
777 | ERR("%s dma error, lch %d status %02x\n", ep->ep.name, lch, ch_status); | 776 | ERR("%s dma error, lch %d status %02x\n", ep->ep.name, lch, ch_status); |
778 | 777 | ||
779 | /* complete current transfer ... */ | 778 | /* complete current transfer ... */ |
@@ -2438,7 +2437,7 @@ static int proc_udc_open(struct inode *inode, struct file *file) | |||
2438 | return single_open(file, proc_udc_show, NULL); | 2437 | return single_open(file, proc_udc_show, NULL); |
2439 | } | 2438 | } |
2440 | 2439 | ||
2441 | static struct file_operations proc_ops = { | 2440 | static const struct file_operations proc_ops = { |
2442 | .open = proc_udc_open, | 2441 | .open = proc_udc_open, |
2443 | .read = seq_read, | 2442 | .read = seq_read, |
2444 | .llseek = seq_lseek, | 2443 | .llseek = seq_lseek, |
@@ -2819,7 +2818,7 @@ bad_on_1710: | |||
2819 | 2818 | ||
2820 | /* USB general purpose IRQ: ep0, state changes, dma, etc */ | 2819 | /* USB general purpose IRQ: ep0, state changes, dma, etc */ |
2821 | status = request_irq(pdev->resource[1].start, omap_udc_irq, | 2820 | status = request_irq(pdev->resource[1].start, omap_udc_irq, |
2822 | SA_SAMPLE_RANDOM, driver_name, udc); | 2821 | IRQF_SAMPLE_RANDOM, driver_name, udc); |
2823 | if (status != 0) { | 2822 | if (status != 0) { |
2824 | ERR( "can't get irq %ld, err %d\n", | 2823 | ERR( "can't get irq %ld, err %d\n", |
2825 | pdev->resource[1].start, status); | 2824 | pdev->resource[1].start, status); |
@@ -2828,7 +2827,7 @@ bad_on_1710: | |||
2828 | 2827 | ||
2829 | /* USB "non-iso" IRQ (PIO for all but ep0) */ | 2828 | /* USB "non-iso" IRQ (PIO for all but ep0) */ |
2830 | status = request_irq(pdev->resource[2].start, omap_udc_pio_irq, | 2829 | status = request_irq(pdev->resource[2].start, omap_udc_pio_irq, |
2831 | SA_SAMPLE_RANDOM, "omap_udc pio", udc); | 2830 | IRQF_SAMPLE_RANDOM, "omap_udc pio", udc); |
2832 | if (status != 0) { | 2831 | if (status != 0) { |
2833 | ERR( "can't get irq %ld, err %d\n", | 2832 | ERR( "can't get irq %ld, err %d\n", |
2834 | pdev->resource[2].start, status); | 2833 | pdev->resource[2].start, status); |
@@ -2836,7 +2835,7 @@ bad_on_1710: | |||
2836 | } | 2835 | } |
2837 | #ifdef USE_ISO | 2836 | #ifdef USE_ISO |
2838 | status = request_irq(pdev->resource[3].start, omap_udc_iso_irq, | 2837 | status = request_irq(pdev->resource[3].start, omap_udc_iso_irq, |
2839 | SA_INTERRUPT, "omap_udc iso", udc); | 2838 | IRQF_DISABLED, "omap_udc iso", udc); |
2840 | if (status != 0) { | 2839 | if (status != 0) { |
2841 | ERR("can't get irq %ld, err %d\n", | 2840 | ERR("can't get irq %ld, err %d\n", |
2842 | pdev->resource[3].start, status); | 2841 | pdev->resource[3].start, status); |