RE: [PATCH] fsl-rio: Release rapidio port I/O region resource if portfailed to initialize

From: Bounine, Alexandre
Date: Thu Sep 01 2011 - 09:30:40 EST


On Thursday, September 01, 2011 5:52 AM
Liu Gang <Gang.Liu@xxxxxxxxxxxxx> wrote:

> Subject: [PATCH] fsl-rio: Release rapidio port I/O region resource if
> portfailed to initialize
>
...
>
> Signed-off-by: Liu Gang <Gang.Liu@xxxxxxxxxxxxx>
> ---
> arch/powerpc/sysdev/fsl_rio.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/arch/powerpc/sysdev/fsl_rio.c
> b/arch/powerpc/sysdev/fsl_rio.c
> index c65f75a..22ffccd 100644
> --- a/arch/powerpc/sysdev/fsl_rio.c
> +++ b/arch/powerpc/sysdev/fsl_rio.c
> @@ -1608,6 +1608,7 @@ int fsl_rio_setup(struct platform_device *dev)
> return 0;
> err:
> iounmap(priv->regs_win);
> + release_resource(&port->iores);
> err_res:
> kfree(priv);
> err_priv:
> --
> 1.7.3.1

Acked-by: Alexandre Bounine <alexandre.bounine@xxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/