Skip to content

Commit

Permalink
usb: musb: dsps: remove duplicate check on resource
Browse files Browse the repository at this point in the history
Sanity check on resource happening with devm_ioremap_resource().

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Varka Bhadram authored and Felipe Balbi committed Nov 3, 2014
1 parent 28a2694 commit 7683307
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/musb/musb_dsps.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,6 @@ static int dsps_musb_init(struct musb *musb)
int ret;

r = platform_get_resource_byname(parent, IORESOURCE_MEM, "control");
if (!r)
return -EINVAL;

reg_base = devm_ioremap_resource(dev, r);
if (IS_ERR(reg_base))
return PTR_ERR(reg_base);
Expand Down

0 comments on commit 7683307

Please sign in to comment.