提交 f3f5972f 编写于 作者: V Varka Bhadram 提交者: Greg Kroah-Hartman

musb: 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: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 972b9834
...@@ -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.
先完成此消息的编辑!
想要评论请 注册