mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-06 10:49:18 -05:00
pinctrl: tegra-xusb: testing wrong variable in probe()
There is a cut and paste bug so we test the wrong variable. "err" is never less than zero at this point. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Stephen Warren <[email protected]> Acked-by: Thierry Reding <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
8e1594db7e
commit
8a3cfb7c17
1 changed files with 2 additions and 1 deletions
|
|
@ -930,7 +930,8 @@ static int tegra_xusb_padctl_probe(struct platform_device *pdev)
|
|||
|
||||
padctl->provider = devm_of_phy_provider_register(&pdev->dev,
|
||||
tegra_xusb_padctl_xlate);
|
||||
if (err < 0) {
|
||||
if (IS_ERR(padctl->provider)) {
|
||||
err = PTR_ERR(padctl->provider);
|
||||
dev_err(&pdev->dev, "failed to register PHYs: %d\n", err);
|
||||
goto unregister;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue