[alsa-devel] [PATCH 1/15] sound/soc/mxs/mxs-saif.c: add missing iounmap
Wolfram Sang
w.sang at pengutronix.de
Thu Jan 26 12:05:06 CET 2012
> @@ -666,18 +666,19 @@ static int mxs_saif_probe(struct platform_device *pdev)
> goto failed_get_resource;
> }
>
> - if (!request_mem_region(iores->start, resource_size(iores),
> - "mxs-saif")) {
> + if (!devm_request_mem_region(&pdev->dev, iores->start,
> + resource_size(iores), "mxs-saif")) {
> dev_err(&pdev->dev, "request_mem_region failed\n");
> ret = -EBUSY;
> goto failed_get_resource;
> }
>
> - saif->base = ioremap(iores->start, resource_size(iores));
> + saif->base = devm_ioremap(&pdev->dev, iores->start,
> + resource_size(iores));
devm_request_and_ioremap() to save even more code?
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120126/b74c4d99/attachment.sig
More information about the Alsa-devel
mailing list