diff options
| author | David S. Miller <davem@davemloft.net> | 2010-03-22 20:05:26 -0700 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-03-22 20:05:26 -0700 | 
| commit | 91c030b4d6445ebe9fbddb86d584441f300df15c (patch) | |
| tree | e8a48e3ad9e0448c690268175e555fa651983546 /arch/arm/mach-omap2/mailbox.c | |
| parent | 7c3456fdb503071787f7f972de1069b9cacd16f0 (diff) | |
| parent | ae6be51ed01d6c4aaf249a207b4434bc7785853b (diff) | |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Diffstat (limited to 'arch/arm/mach-omap2/mailbox.c')
| -rw-r--r-- | arch/arm/mach-omap2/mailbox.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index 52a981cb8fdd..318f3638653c 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c @@ -430,19 +430,19 @@ static int __devinit omap2_mbox_probe(struct platform_device *pdev)  		if (unlikely(!res)) {  			dev_err(&pdev->dev, "invalid irq resource\n");  			ret = -ENODEV; -			goto err_iva1; +			omap_mbox_unregister(&mbox_dsp_info); +			goto err_dsp;  		}  		mbox_iva_info.irq = res->start;  		ret = omap_mbox_register(&pdev->dev, &mbox_iva_info); -		if (ret) -			goto err_iva1; +		if (ret) { +			omap_mbox_unregister(&mbox_dsp_info); +			goto err_dsp; +		}  	}  #endif  	return 0; -err_iva1: -	omap_mbox_unregister(&mbox_dsp_info); -  err_dsp:  	iounmap(mbox_base);  	return ret; | 
