Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8bbcd17d authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: omap: switch over to devm_ioremap_resource()



use the new devm_ioremap_resource on dwc3-omap.c

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 636e2a2c
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -389,11 +389,9 @@ static int dwc3_omap_probe(struct platform_device *pdev)
		return -EINVAL;
	}

	base = devm_ioremap_nocache(dev, res->start, resource_size(res));
	if (!base) {
		dev_err(dev, "ioremap failed\n");
		return -ENOMEM;
	}
	base = devm_ioremap_resource(dev, res);
	if (IS_ERR(base))
		return PTR_ERR(base);

	spin_lock_init(&omap->lock);