aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2012-05-29 07:27:52 -0400
committerFelipe Balbi <balbi@ti.com>2012-06-03 16:11:30 -0400
commit5b6d84b78930a4fa3f8380dc0ec4ac427d620201 (patch)
treee109ef400345250046a3e36a8ab379e9c7fa3c4a /drivers/usb/gadget
parent80dd1358d33e6c85018e1e1c5d78b29ac466221a (diff)
usb: gadget: omap_udc: remove useless print
that print isn't needed at all. Remove it and move the use_dma reinitialization to probe() function. Note that ideally we would drop all cpu_is_* and machine_is_* checks from this driver instead. Later patches will come to get rid of those. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/omap_udc.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c
index aa2d174a2521..5e7b8912ef31 100644
--- a/drivers/usb/gadget/omap_udc.c
+++ b/drivers/usb/gadget/omap_udc.c
@@ -2800,6 +2800,9 @@ static int __init omap_udc_probe(struct platform_device *pdev)
2800 struct clk *dc_clk = NULL; 2800 struct clk *dc_clk = NULL;
2801 struct clk *hhc_clk = NULL; 2801 struct clk *hhc_clk = NULL;
2802 2802
2803 if (cpu_is_omap7xx())
2804 use_dma = 0;
2805
2803 /* NOTE: "knows" the order of the resources! */ 2806 /* NOTE: "knows" the order of the resources! */
2804 if (!request_mem_region(pdev->resource[0].start, 2807 if (!request_mem_region(pdev->resource[0].start,
2805 pdev->resource[0].end - pdev->resource[0].start + 1, 2808 pdev->resource[0].end - pdev->resource[0].start + 1,
@@ -3096,16 +3099,6 @@ static struct platform_driver udc_driver = {
3096 3099
3097static int __init udc_init(void) 3100static int __init udc_init(void)
3098{ 3101{
3099 /* Disable DMA for omap7xx -- it doesn't work right. */
3100 if (cpu_is_omap7xx())
3101 use_dma = 0;
3102
3103 INFO("%s, version: " DRIVER_VERSION
3104#ifdef USE_ISO
3105 " (iso)"
3106#endif
3107 "%s\n", driver_desc,
3108 use_dma ? " (dma)" : "");
3109 return platform_driver_probe(&udc_driver, omap_udc_probe); 3102 return platform_driver_probe(&udc_driver, omap_udc_probe);
3110} 3103}
3111module_init(udc_init); 3104module_init(udc_init);