aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_dsps.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/musb/musb_dsps.c')
-rw-r--r--drivers/usb/musb/musb_dsps.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
index f7d764de6fda..99f470d26a38 100644
--- a/drivers/usb/musb/musb_dsps.c
+++ b/drivers/usb/musb/musb_dsps.c
@@ -500,10 +500,9 @@ static int dsps_create_musb_pdev(struct dsps_glue *glue, u8 id)
500 resources[0].end = resources[0].start + SZ_4 - 1; 500 resources[0].end = resources[0].start + SZ_4 - 1;
501 resources[0].flags = IORESOURCE_MEM; 501 resources[0].flags = IORESOURCE_MEM;
502 502
503 glue->usb_ctrl[id] = devm_request_and_ioremap(&pdev->dev, resources); 503 glue->usb_ctrl[id] = devm_ioremap_resource(&pdev->dev, resources);
504 if (glue->usb_ctrl[id] == NULL) { 504 if (IS_ERR(glue->usb_ctrl[id])) {
505 dev_err(dev, "Failed to obtain usb_ctrl%d memory\n", id); 505 ret = PTR_ERR(glue->usb_ctrl[id]);
506 ret = -ENODEV;
507 goto err0; 506 goto err0;
508 } 507 }
509 508