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

Commit 43579688 authored by Silviu-Mihai Popescu's avatar Silviu-Mihai Popescu Committed by David Woodhouse
Browse files

mtd: devices: convert OMAP BCH to devm_ioremap_resource()



Convert all users of devm_request_and_ioremap() to the newly introduced
devm_ioremap_resource() which provides more consistent error handling.

Signed-off-by: default avatarSilviu-Mihai Popescu <silviupopescu1990@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 975aefc9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -351,9 +351,9 @@ static int elm_probe(struct platform_device *pdev)
		return -ENODEV;
	}

	info->elm_base = devm_request_and_ioremap(&pdev->dev, res);
	if (!info->elm_base)
		return -EADDRNOTAVAIL;
	info->elm_base = devm_ioremap_resource(&pdev->dev, res);
	if (IS_ERR(info->elm_base))
		return PTR_ERR(info->elm_base);

	ret = devm_request_irq(&pdev->dev, irq->start, elm_isr, 0,
			pdev->name, info);