]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: gadget: omap_udc: remove useless print
authorFelipe Balbi <balbi@ti.com>
Tue, 29 May 2012 11:27:52 +0000 (14:27 +0300)
committerFelipe Balbi <balbi@ti.com>
Sun, 3 Jun 2012 20:11:30 +0000 (23:11 +0300)
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>
drivers/usb/gadget/omap_udc.c

index aa2d174a25210dcd3eb28676a2aeedd8a50cfad1..5e7b8912ef31fa89c6deb7cb8f164a17bfa94cc3 100644 (file)
@@ -2800,6 +2800,9 @@ static int __init omap_udc_probe(struct platform_device *pdev)
        struct clk              *dc_clk = NULL;
        struct clk              *hhc_clk = NULL;
 
+       if (cpu_is_omap7xx())
+               use_dma = 0;
+
        /* NOTE:  "knows" the order of the resources! */
        if (!request_mem_region(pdev->resource[0].start,
                        pdev->resource[0].end - pdev->resource[0].start + 1,
@@ -3096,16 +3099,6 @@ static struct platform_driver udc_driver = {
 
 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);
 }
 module_init(udc_init);