We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d4ee5b commit 2d30e40Copy full SHA for 2d30e40
drivers/usb/musb/musb_dsps.c
@@ -429,12 +429,10 @@ static int dsps_musb_init(struct musb *musb)
429
struct platform_device *parent = to_platform_device(dev->parent);
430
const struct dsps_musb_wrapper *wrp = glue->wrp;
431
void __iomem *reg_base;
432
- struct resource *r;
433
u32 rev, val;
434
int ret;
435
436
- r = platform_get_resource_byname(parent, IORESOURCE_MEM, "control");
437
- reg_base = devm_ioremap_resource(dev, r);
+ reg_base = devm_platform_ioremap_resource_byname(parent, "control");
438
if (IS_ERR(reg_base))
439
return PTR_ERR(reg_base);
440
musb->ctrl_base = reg_base;
0 commit comments