提交 76833075 编写于 作者: V Varka Bhadram 提交者: Felipe Balbi

usb: musb: dsps: remove duplicate check on resource

Sanity check on resource happening with devm_ioremap_resource().
Signed-off-by: NVarka Bhadram <varkab@cdac.in>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 28a26945
...@@ -447,9 +447,6 @@ static int dsps_musb_init(struct musb *musb) ...@@ -447,9 +447,6 @@ static int dsps_musb_init(struct musb *musb)
int ret; int ret;
r = platform_get_resource_byname(parent, IORESOURCE_MEM, "control"); r = platform_get_resource_byname(parent, IORESOURCE_MEM, "control");
if (!r)
return -EINVAL;
reg_base = devm_ioremap_resource(dev, r); reg_base = devm_ioremap_resource(dev, r);
if (IS_ERR(reg_base)) if (IS_ERR(reg_base))
return PTR_ERR(reg_base); return PTR_ERR(reg_base);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册