From 67be187fa53b0b1df66b97c7ddb5cec8ed232154 Mon Sep 17 00:00:00 2001 From: Suman Anna Date: Mon, 25 Jan 2010 18:27:21 -0600 Subject: [PATCH] --- yaml --- r: 188419 b: refs/heads/master c: 26e4248359c6bf2da4a07767f6e12f1df426ab0a h: refs/heads/master i: 188417: 7903b1fc48ee1da3c67f9fddbda2624f8be8f0af 188415: 57c45ddab1d9d032d0bbe5c363dcd4fa89523afe v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-omap2/mailbox.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 86b9f0dfbebb..9ef5bcd27b27 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 21b90340207d324f92111e25ead1752533eeb9ca +refs/heads/master: 26e4248359c6bf2da4a07767f6e12f1df426ab0a diff --git a/trunk/arch/arm/mach-omap2/mailbox.c b/trunk/arch/arm/mach-omap2/mailbox.c index 52a981cb8fdd..318f3638653c 100644 --- a/trunk/arch/arm/mach-omap2/mailbox.c +++ b/trunk/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;