Re: [PATCH 3/3] sound/soc/au1x: keep pointer to resource so it can be freed

From: Manuel Lauss
Date: Wed Oct 19 2011 - 10:50:32 EST


On Tue, Oct 18, 2011 at 5:45 AM, Julia Lawall <julia@xxxxxxx> wrote:
> From: Julia Lawall <julia@xxxxxxx>
>
> Add a new variable for storing resources accessed subsequent to the one
> accessed using request_mem_region, so the one accessed using
> request_mem_region can be released if needed.
>
> This code is also missing some calls to iounmap.

How about something much simpler, like this: