[PATCH] fsl-rio: Release rapidio port I/O region resource if portfailed to initialize
Bounine, Alexandre
Alexandre.Bounine at idt.com
Thu Sep 1 23:29:55 EST 2011
On Thursday, September 01, 2011 5:52 AM
Liu Gang <Gang.Liu at freescale.com> wrote:
> Subject: [PATCH] fsl-rio: Release rapidio port I/O region resource if
> portfailed to initialize
>
...
>
> Signed-off-by: Liu Gang <Gang.Liu at freescale.com>
> ---
> 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 at idt.com>
More information about the Linuxppc-dev
mailing list