Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sergei Shtylyov and committed by
Felipe Balbi
7241a21a eee3f15d

+3 -3
+3 -3
drivers/usb/phy/phy-rcar-gen2-usb.c
··· 177 177 struct clk *clk; 178 178 int retval; 179 179 180 - pdata = dev_get_platdata(&pdev->dev); 180 + pdata = dev_get_platdata(dev); 181 181 if (!pdata) { 182 182 dev_err(dev, "No platform data\n"); 183 183 return -EINVAL; 184 184 } 185 185 186 - clk = devm_clk_get(&pdev->dev, "usbhs"); 186 + clk = devm_clk_get(dev, "usbhs"); 187 187 if (IS_ERR(clk)) { 188 - dev_err(&pdev->dev, "Can't get the clock\n"); 188 + dev_err(dev, "Can't get the clock\n"); 189 189 return PTR_ERR(clk); 190 190 } 191 191