From: Chris Ruehl Date: Wed, 4 Dec 2013 02:02:44 +0000 (+0800) Subject: usb: phy-tegra-usb.c: wrong pointer check for remap UTMI X-Git-Tag: upstream/snapshot3+hdmi~3755^2~10^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=851dd02b4f1fdb437586190f87217e3382a736bd;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 Reviewed-by: Thierry Reding Signed-off-by: Chris Ruehl Acked-by: Venu Byravarasu Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/phy/phy-tegra-usb.c b/drivers/usb/phy/phy-tegra-usb.c index 82232ac..bbe4f8e 100644 --- a/drivers/usb/phy/phy-tegra-usb.c +++ b/drivers/usb/phy/phy-tegra-usb.c @@ -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, resource_size(res)); - if (!tegra_phy->regs) { + if (!tegra_phy->pad_regs) { dev_err(&pdev->dev, "Failed to remap UTMI Pad regs\n"); return -ENOMEM; }