Commit 7520bee2 authored by Varka Bhadram's avatar Varka Bhadram Committed by Greg Kroah-Hartman

phy: phy-rcar-usb: remove duplicate check on resource

Sanity check on resource happening with devm_ioremap_resource().
Signed-off-by: default avatarVarka Bhadram <varkab@cdac.in>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f3f5972f
...@@ -195,11 +195,9 @@ static int rcar_usb_phy_probe(struct platform_device *pdev) ...@@ -195,11 +195,9 @@ static int rcar_usb_phy_probe(struct platform_device *pdev)
return PTR_ERR(reg0); return PTR_ERR(reg0);
res1 = platform_get_resource(pdev, IORESOURCE_MEM, 1); res1 = platform_get_resource(pdev, IORESOURCE_MEM, 1);
if (res1) {
reg1 = devm_ioremap_resource(dev, res1); reg1 = devm_ioremap_resource(dev, res1);
if (IS_ERR(reg1)) if (IS_ERR(reg1))
return PTR_ERR(reg1); return PTR_ERR(reg1);
}
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
if (!priv) { if (!priv) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment