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

Commit 19290816 authored by Felipe Balbi's avatar Felipe Balbi Committed by Greg Kroah-Hartman
Browse files

usb: chipidea: core: switch over to devm_ioremap_resource



switch over to the newly added devm_ioremap_resource
which provides more consistent error messages.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bb36668d
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -407,11 +407,9 @@ static int ci_hdrc_probe(struct platform_device *pdev)
		return -ENODEV;
	}

	base = devm_request_and_ioremap(dev, res);
	if (!base) {
		dev_err(dev, "can't request and ioremap resource\n");
		return -ENOMEM;
	}
	base = devm_ioremap_resource(dev, res);
	if (IS_ERR(base))
		return PTR_ERR(base);

	ci = devm_kzalloc(dev, sizeof(*ci), GFP_KERNEL);
	if (!ci) {