diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2014-02-22 04:29:15 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-03-05 09:44:48 -0600 |
commit | 7241a21a7178eb327ca2c8f2ffc325b10e1e05bd (patch) | |
tree | ea1f2e86c412c426096d99ff00c35fff3486f7ee /drivers | |
parent | eee3f15d5f1f4f0c283dd4db67dc1b874a2852d1 (diff) | |
download | linux-7241a21a7178eb327ca2c8f2ffc325b10e1e05bd.tar.bz2 |
usb: phy: rcar-gen2-usb: always use 'dev' variable in probe() method
The probe() method has the 'dev' local variable declared and used but strangely
not in all cases where it should be...
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/phy/phy-rcar-gen2-usb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/phy/phy-rcar-gen2-usb.c b/drivers/usb/phy/phy-rcar-gen2-usb.c index 551e0a6c0e22..388d89f6b141 100644 --- a/drivers/usb/phy/phy-rcar-gen2-usb.c +++ b/drivers/usb/phy/phy-rcar-gen2-usb.c @@ -177,15 +177,15 @@ static int rcar_gen2_usb_phy_probe(struct platform_device *pdev) struct clk *clk; int retval; - pdata = dev_get_platdata(&pdev->dev); + pdata = dev_get_platdata(dev); if (!pdata) { dev_err(dev, "No platform data\n"); return -EINVAL; } - clk = devm_clk_get(&pdev->dev, "usbhs"); + clk = devm_clk_get(dev, "usbhs"); if (IS_ERR(clk)) { - dev_err(&pdev->dev, "Can't get the clock\n"); + dev_err(dev, "Can't get the clock\n"); return PTR_ERR(clk); } |