ASoC: Convert to devm_ioremap_resource()
Convert all uses of devm_request_and_ioremap() to the newly introduced devm_ioremap_resource() which provides more consistent error handling. devm_ioremap_resource() provides its own error messages so all explicit error messages can be removed from the failure code paths. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: Liam Girdwood <lrg@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
4d6dc3a735
commit
b25b5aa066
@@ -252,9 +252,9 @@ static int imx_audmux_probe(struct platform_device *pdev)
|
||||
of_match_device(imx_audmux_dt_ids, &pdev->dev);
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
audmux_base = devm_request_and_ioremap(&pdev->dev, res);
|
||||
if (!audmux_base)
|
||||
return -EADDRNOTAVAIL;
|
||||
audmux_base = devm_ioremap_resource(&pdev->dev, res);
|
||||
if (IS_ERR(audmux_base))
|
||||
return PTR_ERR(audmux_base);
|
||||
|
||||
pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
|
||||
if (IS_ERR(pinctrl)) {
|
||||
|
Reference in New Issue
Block a user