Commit 5b6d84b7 authored by Felipe Balbi's avatar Felipe Balbi

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: default avatarFelipe Balbi <balbi@ti.com>
parent 80dd1358
...@@ -2800,6 +2800,9 @@ static int __init omap_udc_probe(struct platform_device *pdev) ...@@ -2800,6 +2800,9 @@ static int __init omap_udc_probe(struct platform_device *pdev)
struct clk *dc_clk = NULL; struct clk *dc_clk = NULL;
struct clk *hhc_clk = NULL; struct clk *hhc_clk = NULL;
if (cpu_is_omap7xx())
use_dma = 0;
/* NOTE: "knows" the order of the resources! */ /* NOTE: "knows" the order of the resources! */
if (!request_mem_region(pdev->resource[0].start, if (!request_mem_region(pdev->resource[0].start,
pdev->resource[0].end - pdev->resource[0].start + 1, pdev->resource[0].end - pdev->resource[0].start + 1,
...@@ -3096,16 +3099,6 @@ static struct platform_driver udc_driver = { ...@@ -3096,16 +3099,6 @@ static struct platform_driver udc_driver = {
static int __init udc_init(void) static int __init udc_init(void)
{ {
/* Disable DMA for omap7xx -- it doesn't work right. */
if (cpu_is_omap7xx())
use_dma = 0;
INFO("%s, version: " DRIVER_VERSION
#ifdef USE_ISO
" (iso)"
#endif
"%s\n", driver_desc,
use_dma ? " (dma)" : "");
return platform_driver_probe(&udc_driver, omap_udc_probe); return platform_driver_probe(&udc_driver, omap_udc_probe);
} }
module_init(udc_init); module_init(udc_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment