]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
usb: gadget: mv_u3d_core: remove unused clock
authorFelipe Balbi <balbi@ti.com>
Tue, 2 Apr 2013 08:12:11 +0000 (11:12 +0300)
committerFelipe Balbi <balbi@ti.com>
Tue, 2 Apr 2013 08:42:47 +0000 (11:42 +0300)
The origianl understanding of clock is wrong. The UDC controller
only have one clock input.
Passing clock name by pdata is wrong. The clock is defined by device
iteself.

Cc: Chao Xie <chao.xie@marvell.com>
Cc: Yu Xu <yuxu@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/mv_u3d_core.c

index 9675227a9529a4f14bbf9f591afd29e79035613c..58288e9cf728e2e34a71e67183edeb6cf0532118 100644 (file)
@@ -1821,7 +1821,7 @@ static int mv_u3d_probe(struct platform_device *dev)
        u3d->dev = &dev->dev;
        u3d->vbus = pdata->vbus;
 
-       u3d->clk = clk_get(&dev->dev, pdata->clkname[0]);
+       u3d->clk = clk_get(&dev->dev, NULL);
        if (IS_ERR(u3d->clk)) {
                retval = PTR_ERR(u3d->clk);
                goto err_get_clk;