mirror of https://gitee.com/openkylin/linux.git
usb: phy-tegra-usb.c: wrong pointer check for remap UTMI
usb: phy-tegra-usb.c: wrong pointer check for remap UTMI A wrong pointer was used to test the result of devm_ioremap() Acked-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Chris Ruehl <chris.ruehl@gtsys.com.hk> Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
0b55149033
commit
851dd02b4f
|
@ -876,7 +876,7 @@ static int utmi_phy_probe(struct tegra_usb_phy *tegra_phy,
|
||||||
|
|
||||||
tegra_phy->pad_regs = devm_ioremap(&pdev->dev, res->start,
|
tegra_phy->pad_regs = devm_ioremap(&pdev->dev, res->start,
|
||||||
resource_size(res));
|
resource_size(res));
|
||||||
if (!tegra_phy->regs) {
|
if (!tegra_phy->pad_regs) {
|
||||||
dev_err(&pdev->dev, "Failed to remap UTMI Pad regs\n");
|
dev_err(&pdev->dev, "Failed to remap UTMI Pad regs\n");
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue