aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb/musb_dsps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
index 4ffbaace7913..4ad52e76c4dd 100644
--- a/drivers/usb/musb/musb_dsps.c
+++ b/drivers/usb/musb/musb_dsps.c
@@ -361,8 +361,8 @@ static int dsps_musb_init(struct musb *musb)
361 return -EINVAL; 361 return -EINVAL;
362 362
363 reg_base = devm_ioremap_resource(dev, r); 363 reg_base = devm_ioremap_resource(dev, r);
364 if (!musb->ctrl_base) 364 if (IS_ERR(reg_base))
365 return -EINVAL; 365 return PTR_ERR(reg_base);
366 musb->ctrl_base = reg_base; 366 musb->ctrl_base = reg_base;
367 367
368 /* NOP driver needs change if supporting dual instance */ 368 /* NOP driver needs change if supporting dual instance */