usb: phy: rcar-gen2-usb: always use 'dev' variable in probe() method
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 22 Feb 2014 01:29:15 +0000 (04:29 +0300)
committerFelipe Balbi <balbi@ti.com>
Wed, 5 Mar 2014 15:44:48 +0000 (09:44 -0600)
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>
drivers/usb/phy/phy-rcar-gen2-usb.c

index 551e0a6c0e221d4b6bfd8e506044efc4aeafc71b..388d89f6b14117f82d5324976211bda5edec4130 100644 (file)
@@ -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);
        }